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:
Mendon Kissling 2025-02-19 09:23:35 -05:00 committed by GitHub
commit 770c1b3528
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 10 deletions

View file

@ -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