Skip to content

Commit 183f4e9

Browse files
committed
feat: cache node_modules on gh release workflow
1 parent ca6a627 commit 183f4e9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ jobs:
2424
- name: Cache node modules
2525
uses: actions/cache@v4
2626
with:
27-
path: ~/.npm
28-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
29-
restore-keys: |
30-
${{ runner.os }}-build-${{ env.cache-name }}-
31-
${{ runner.os }}-build-
32-
${{ runner.os }}-
27+
path: node_modules
28+
key: ${{ hashFiles('package-lock.json') }}
3329

3430
- name: Checkout code
3531
uses: actions/checkout@v4

0 commit comments

Comments
 (0)