Skip to content

Commit

Permalink
ci: update node action, add pnpm action, use pnpm to install and build
Browse files Browse the repository at this point in the history
  • Loading branch information
dually8 committed Dec 13, 2024
1 parent 7499ab9 commit e07f38e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,25 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v5

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: 'pnpm'

- name: Build sveltekit project
shell: bash
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: npm ci && npm run build
run: |
pnpm install
pnpm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit e07f38e

Please sign in to comment.