build(actions): update gh-pages with pnpm
This commit is contained in:
16
.github/workflows/gh-pages.yaml
vendored
16
.github/workflows/gh-pages.yaml
vendored
@@ -14,22 +14,18 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
- name: Use PNPM
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
version: latest
|
||||
- name: Install dependencies
|
||||
run: npm i
|
||||
run: pnpm i
|
||||
- name: Build all
|
||||
run: npm run build-all
|
||||
run: pnpm run build-all
|
||||
- name: Build directory
|
||||
run: npm run vite:directory:build
|
||||
run: pnpm run vite:directory:build
|
||||
- name: Deploy
|
||||
uses: s0/git-publish-subdir-action@develop
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user