Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit cc6f430

Browse files
committed
refactor(ci): improve composite action
1 parent c2b4385 commit cc6f430

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/actions/setup-environment/action.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@ runs:
2424
continue-on-error: true
2525
uses: asdf-vm/actions/install@v2
2626

27-
- name: 🗂️ Cache npm dependencies
28-
id: cache-npm
27+
- name: 🗂️ Cache node_modules
28+
id: cache-node-modules
2929
uses: actions/cache@v3
3030
env:
31-
cache-name: cache-npm
32-
cache-path: ~/.npm
31+
cache-name: cache-node-modules
32+
cache-path: node_modules
3333
with:
3434
path: ${{ env.cache-path }}
3535
key: ${{ runner.os }}-se-${{ env.cache-name }}-${{ hashFiles('**/.tool-versions') }}-${{ hashFiles('**/package-lock.json') }}
36-
restore-keys: |
37-
${{ runner.os }}-se-${{ env.cache-name }}-${{ hashFiles('**/.tool-versions') }}-
3836

3937
- name: 📥 Install dependencies
38+
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }}
4039
shell: bash
4140
run: npm ci
4241

0 commit comments

Comments
 (0)