fix: make docs workflow use pnpm
This commit is contained in:
9
.github/workflows/docs.yaml
vendored
9
.github/workflows/docs.yaml
vendored
@@ -41,13 +41,12 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16.x
|
node-version: 20.x
|
||||||
cache: 'npm'
|
cache: 'pnpm'
|
||||||
- run: npm ci
|
- run: pnpm run build # set up 'build' script in your package.json
|
||||||
- run: npm run build # set up 'build' script in your package.json
|
|
||||||
|
|
||||||
- name: Build documents
|
- name: Build documents
|
||||||
run: npm run docs #set up 'docs' build script in your package.json
|
run: pnpm run docs #set up 'docs' build script in your package.json
|
||||||
|
|
||||||
- name: tar the new docs
|
- name: tar the new docs
|
||||||
run: tar -cvf newdocumentation.tar ./docs
|
run: tar -cvf newdocumentation.tar ./docs
|
||||||
|
|||||||
Reference in New Issue
Block a user