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 8d33006 commit 07fe2dd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci-cache-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,24 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Cache node_modules
- name: Restore
uses: actions/cache@v4
with:
path: |
node_modules
key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }}
- name: NPM
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
cd ${{ env.WORKSPACE }}
npm install
- name: Build
run: |
cd ${{ env.WORKSPACE }}
npm run build
- name: Cache
if: success()
uses: actions/cache@v4
with:
path: node_modules
key: ci-cache-node-${{ hashFiles('v-poc/ci/cache-node/package-lock.json') }}

0 comments on commit 07fe2dd

Please sign in to comment.