Update .forgejo/workflows/build.yaml
This commit is contained in:
parent
225f2ef088
commit
7e9160bbcd
1 changed files with 8 additions and 0 deletions
|
@ -17,6 +17,14 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: '~/.npm'
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Build project
|
||||
run: npm install && npm run build
|
||||
|
||||
|
|
Loading…
Reference in a new issue