ci: change docs build to use yarn (#6700)
* ci: Update GitHub Actions workflow to use Yarn instead of npm * chore(deps): Update terser and terser-webpack-plugin dependencies in yarn.lock * chore(deps): Update Docusaurus dependencies to version 3.7.0
This commit is contained in:
parent
3b38c2efb7
commit
770c1b3528
3 changed files with 31 additions and 10 deletions
8
.github/workflows/deploy_gh-pages.yml
vendored
8
.github/workflows/deploy_gh-pages.yml
vendored
|
|
@ -18,13 +18,13 @@ jobs:
|
|||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
cache-dependency-path: ./docs/package-lock.json
|
||||
cache: yarn
|
||||
cache-dependency-path: ./docs/yarn.lock
|
||||
|
||||
- name: Install dependencies
|
||||
run: cd docs && npm install --legacy-peer-deps
|
||||
run: cd docs && yarn install
|
||||
- name: Build website
|
||||
run: cd docs && npm run build
|
||||
run: cd docs && yarn build
|
||||
|
||||
# Popular action to deploy to GitHub Pages:
|
||||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue