Skip to content

Commit

Permalink
chore: change to yarn (#913)
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Case <richard.case@outlook.com>
  • Loading branch information
richardcase committed Jul 16, 2024
1 parent e395d98 commit 5107a03
Show file tree
Hide file tree
Showing 5 changed files with 5,291 additions and 21,307 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,31 +31,32 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: npm
cache-dependency-path: 'userdocs/package-lock.json'
node-version: 22
cache: yarn
cache-dependency-path: 'userdocs/yarn.lock'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Install dependencies
working-directory: ./userdocs
run: npm install
run: yarn install --frozen-lockfile
- name: Build website
working-directory: ./userdocs
run: npm run build
run: yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build

# Deployment job
deploy:
name: Deploy to GitHub pages
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v4
17 changes: 7 additions & 10 deletions .github/workflows/test-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- main

jobs:
test-deploy:
name: Test docs build
build:
name: Build docusaurus
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,15 +16,12 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
node-version: 18
cache: npm
cache-dependency-path: 'userdocs/package-lock.json'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
node-version: 22
cache: yarn
cache-dependency-path: 'userdocs/yarn.lock'
- name: Install dependencies
working-directory: ./userdocs
run: npm install
run: yarn install --frozen-lockfile
- name: Build website
working-directory: ./userdocs
run: npm run build
run: yarn build
Loading

0 comments on commit 5107a03

Please sign in to comment.