Skip to content

Commit febccc0

Browse files
fix(git-action): update cache process
1 parent ac68d00 commit febccc0

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/feature.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,14 @@ jobs:
2121
runs-on: ${{ matrix.os }}
2222

2323
steps:
24+
- uses: actions/checkout@v4
2425
- uses: actions/setup-node@v4
2526
with:
2627
node-version: ${{ matrix.node }}
27-
28-
- name: Checkout Repo
29-
uses: actions/checkout@v4
30-
31-
- name: cache node_modules
32-
uses: actions/cache@v4
33-
id: cache
34-
with:
35-
path: |
36-
node_modules
37-
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
28+
cache: 'npm'
29+
cache-dependency-path: '**/package-lock.json'
3830

3931
- name: Install Dependencies
40-
if: steps.cache.outputs.cache-hit != 'true'
4132
run: npm ci
4233

4334
- name: Lint

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)