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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version: [20.x]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use PNPM
|
||||||
uses: actions/setup-node@v3
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
version: latest
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i
|
run: pnpm i
|
||||||
- name: Build all
|
- name: Build all
|
||||||
run: npm run build-all
|
run: pnpm run build-all
|
||||||
- name: Build directory
|
- name: Build directory
|
||||||
run: npm run vite:directory:build
|
run: pnpm run vite:directory:build
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: s0/git-publish-subdir-action@develop
|
uses: s0/git-publish-subdir-action@develop
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user