Skip to content

Commit 8036d4d

Browse files
fix: fix ci caching
1 parent 0e3dd66 commit 8036d4d

File tree

1 file changed

+11
-23
lines changed

1 file changed

+11
-23
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
node-version: 20
2525

2626
- name: Cache node_modules
27-
uses: actions/cache@v4
27+
uses: actions/cache/save@v4
2828
with:
2929
path: node_modules
3030
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31-
restore-keys: |
32-
${{ runner.os }}-node-
3331

3432
- name: Install dependencies
3533
run: npm ci
@@ -48,16 +46,14 @@ jobs:
4846
with:
4947
node-version: 20
5048

51-
- name: Cache node_modules
52-
uses: actions/cache@v4
49+
- name: Restore Cache node_modules
50+
uses: actions/cache/restore@v4
5351
with:
5452
path: node_modules
5553
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
56-
restore-keys: |
57-
${{ runner.os }}-node-
5854

5955
- name: Run Lint
60-
run: npm run lint # Stelle sicher, dass du ein Lint-Skript in deinem package.json hast
56+
run: npm run lint
6157

6258
build:
6359
runs-on: ubuntu-latest
@@ -73,21 +69,17 @@ jobs:
7369
with:
7470
node-version: 20
7571

76-
- name: Cache node_modules
77-
uses: actions/cache@v4
72+
- name: Restore Cache node_modules
73+
uses: actions/cache/restore@v4
7874
with:
7975
path: node_modules
8076
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
81-
restore-keys: |
82-
${{ runner.os }}-node-
8377

8478
- name: Cache dist
85-
uses: actions/cache@v4
79+
uses: actions/cache/save@v4
8680
with:
8781
path: libs/*/dist
8882
key: ${{ runner.os }}-dist-${{ hashFiles('libs/*/dist') }}
89-
restore-keys: |
90-
${{ runner.os }}-dist-
9183

9284
- name: Run Build
9385
run: npm run build
@@ -106,21 +98,17 @@ jobs:
10698
with:
10799
node-version: 20
108100

109-
- name: Cache node_modules
110-
uses: actions/cache@v4
101+
- name: Restore Cache node_modules
102+
uses: actions/cache/restore@v4
111103
with:
112104
path: node_modules
113105
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
114-
restore-keys: |
115-
${{ runner.os }}-node-
116106

117-
- name: Cache dist
118-
uses: actions/cache@v4
107+
- name: Restore Cache dist
108+
uses: actions/cache/restore@v4
119109
with:
120110
path: libs/*/dist
121111
key: ${{ runner.os }}-dist-${{ hashFiles('libs/*/dist') }}
122-
restore-keys: |
123-
${{ runner.os }}-dist-
124112

125113
- name: Run CI Checks
126114
run: npm run test

0 commit comments

Comments
 (0)