Skip to content

Commit 8d63bea

Browse files
fix(git-action): updated beta cache workflow
1 parent febccc0 commit 8d63bea

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

.github/workflows/beta.yml

Lines changed: 7 additions & 23 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
@@ -63,20 +54,13 @@ jobs:
6354
runs-on: ${{ matrix.os }}
6455

6556
steps:
57+
- uses: actions/checkout@v4
6658
- uses: actions/setup-node@v4
6759
with:
6860
node-version: ${{ matrix.node }}
69-
70-
- name: Checkout Repo
71-
uses: actions/checkout@v4
72-
73-
- name: cache node_modules
74-
uses: actions/cache@v4
75-
id: cache
76-
with:
77-
path: node_modules
78-
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
79-
61+
cache: 'npm'
62+
cache-dependency-path: '**/package-lock.json'
63+
8064
- name: Versioning
8165
env:
8266
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)