Skip to content

Commit e07f38e

Browse files
committed
ci: update node action, add pnpm action, use pnpm to install and build
1 parent 7499ab9 commit e07f38e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/gh-pages.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,25 @@ jobs:
3535
- name: Setup Pages
3636
uses: actions/configure-pages@v5
3737

38+
- name: Setup pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 9
42+
run_install: false
43+
3844
- name: Setup Node.js
39-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
4046
with:
4147
node-version: "20.x"
48+
cache: 'pnpm'
4249

4350
- name: Build sveltekit project
4451
shell: bash
4552
env:
4653
BASE_PATH: '/${{ github.event.repository.name }}'
47-
run: npm ci && npm run build
54+
run: |
55+
pnpm install
56+
pnpm run build
4857
4958
- name: Upload artifact
5059
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)