Skip to content

Commit 90a587b

Browse files
committed
maintenance: cache pnpm installation
1 parent e2f0f0c commit 90a587b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/cd.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v4
1515

16-
- name: Setup node env
17-
uses: actions/setup-node@v3
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
1818
with:
19-
node-version: 20
19+
version: 9
20+
run_install: false
2021

21-
- uses: pnpm/action-setup@v2
22-
name: Install pnpm
23-
id: pnpm-install
22+
- name: Install Node.js
23+
uses: actions/setup-node@v4
2424
with:
25-
version: 8
26-
run_install: false
25+
node-version: 20
26+
cache: 'pnpm'
27+
28+
- name: Install dependencies
29+
run: pnpm install
2730

28-
- name: Install and Generate
29-
run: |
30-
# TODO - cache pnpm installation
31-
pnpm install
32-
pnpm generate # files are automatically sym-linked to dist/
31+
- name: Generate static files
32+
run: pnpm generate
3333

3434
- name: Deploy
3535
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)