Update .gitea/workflows/build.yml

This commit is contained in:
Zakary Timson 2023-07-27 03:32:41 +00:00
parent 64cb1dca15
commit 825dc1a563

View File

@ -10,11 +10,20 @@ jobs:
steps: steps:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Create Hash
uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: package-lock.json
- name: Restore Cached Dependencies
uses: actions/cache/restore@v3
with:
path: node_modules
key: npm-${{ steps.get-hash.outputs.hash }}
- name: Install Dependencies - name: Install Dependencies
run: npm i run: npm i
- name: Cache Dependencies - name: Cache Dependencies
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: | path: node_modules
node_modules key: npm-${{ steps.get-hash.outputs.hash }}
key: npm-${{ hashFiles('package-lock.json') }}