feat: add tar package installation and cache storage step
This commit is contained in:
parent
08a7a20f7c
commit
0db0fe8be5
1 changed files with 8 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ runs:
|
|||
steps:
|
||||
- name: Build-Node-App Install dependencies
|
||||
shell: sh
|
||||
run: apk add nodejs
|
||||
run: apk add nodejs tar
|
||||
|
||||
- name: Build-Node-App_Git Clone
|
||||
uses: actions/checkout@v4
|
||||
|
|
@ -47,6 +47,13 @@ runs:
|
|||
npm run ${{ inputs.test_action }}
|
||||
npm run ${{ inputs.build_action }}
|
||||
|
||||
- name: Store Node Modules Cache
|
||||
if: always()
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
name: Build-Node-App Upload Artifact
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue