Skip to content

Commit

Permalink
ci: ci cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzc19 committed Jul 25, 2024
1 parent 07fe2dd commit 311fa12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci-cache-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,24 @@ jobs:
with:
node-version: "20"
- name: Restore
uses: actions/cache@v4
id: cache
uses: actions/cache/restore@v4
with:
path: |
node_modules
key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }}
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd ${{ env.WORKSPACE }}
npm install
- name: Build
run: |
cd ${{ env.WORKSPACE }}
npm run build
- name: Cache
- name: Save
if: success()
uses: actions/cache@v4
uses: actions/cache/save@v4
with:
path: node_modules
key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }}

0 comments on commit 311fa12

Please sign in to comment.