chore: use yarn only (#6141)

* use-only-yarn

* cicd-changes

* update-readme-and-contributing

* fix-build-log-url-error

* chore: Update package.json to use yarn commands

* yarn-install

* docs: Update workflow to clarify docs build step

* space
This commit is contained in:
Mendon Kissling 2025-02-06 12:44:46 -05:00 committed by GitHub
commit 84ff6d0fec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 145 additions and 24983 deletions

View file

@ -22,28 +22,17 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch || github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v4
id: setup-node
with:
node-version: ${{ env.NODE_VERSION }}
cache: yarn
cache-dependency-path: ./docs/yarn.lock
- name: Cache Node.js dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('docs/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: cd docs && yarn install --frozen-lockfile
- name: Install Node.js dependencies
run: |
cd docs
npm install --legacy-peer-deps
if: ${{ steps.setup-node.outputs.cache-hit != 'true' }}
- name: Build Docs
run: |
cd docs
npm run build
- name: Build docs
run: cd docs && yarn build