Skip to content

Commit c2f9c8b

Browse files
committed
feat: use cache
1 parent 8142a09 commit c2f9c8b

File tree

3 files changed

+25081
-2
lines changed

3 files changed

+25081
-2
lines changed

.github/workflows/deploy-portal-docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ jobs:
2828
version: 9
2929
run_install: false
3030

31+
- name: Cache pnpm modules
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
.pnpm-store
36+
node_modules
37+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
38+
restore-keys: |
39+
${{ runner.os }}-pnpm-
40+
3141
- name: Install dependencies
32-
run: pnpm install --force
42+
run: pnpm install
3343

3444
- name: Build assets
3545
run: pnpm run build:docs:portal

.github/workflows/prepare-publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,18 @@ jobs:
2323
version: 9
2424
run_install: false
2525

26+
- name: Cache pnpm modules
27+
uses: actions/cache@v3
28+
with:
29+
path: |
30+
.pnpm-store
31+
node_modules
32+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
33+
restore-keys: |
34+
${{ runner.os }}-pnpm-
35+
2636
- name: Install dependencies
27-
run: pnpm install --force
37+
run: pnpm install
2838

2939
- name: Publish
3040
env:

0 commit comments

Comments
 (0)