Skip to content

Commit cea2fd9

Browse files
committed
chore: change to yarn
Signed-off-by: Richard Case <[email protected]>
1 parent e395d98 commit cea2fd9

File tree

5 files changed

+5291
-21307
lines changed

5 files changed

+5291
-21307
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,32 @@ jobs:
3131
fetch-depth: 0
3232
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
3333
with:
34-
node-version: 18
35-
cache: npm
36-
cache-dependency-path: 'userdocs/package-lock.json'
34+
node-version: 22
35+
cache: yarn
36+
cache-dependency-path: 'userdocs/yarn.lock'
3737
- name: Setup Pages
3838
id: pages
3939
uses: actions/configure-pages@v3
4040
- name: Install dependencies
4141
working-directory: ./userdocs
42-
run: npm install
42+
run: yarn install --frozen-lockfile
4343
- name: Build website
4444
working-directory: ./userdocs
45-
run: npm run build
45+
run: yarn build
4646
- name: Upload artifact
4747
uses: actions/upload-pages-artifact@v1
4848
with:
4949
path: ./build
5050

5151
# Deployment job
5252
deploy:
53+
name: Deploy to GitHub pages
54+
needs: build
5355
environment:
5456
name: github-pages
5557
url: ${{ steps.deployment.outputs.page_url }}
5658
runs-on: ubuntu-latest
57-
needs: build
5859
steps:
5960
- name: Deploy to GitHub Pages
6061
id: deployment
61-
uses: actions/deploy-pages@v2
62+
uses: actions/deploy-pages@v4

.github/workflows/test-docs.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- main
77

88
jobs:
9-
test-deploy:
10-
name: Test docs build
9+
build:
10+
name: Build docusaurus
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
@@ -16,15 +16,12 @@ jobs:
1616
fetch-depth: 0
1717
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
1818
with:
19-
node-version: 18
20-
cache: npm
21-
cache-dependency-path: 'userdocs/package-lock.json'
22-
- name: Setup Pages
23-
id: pages
24-
uses: actions/configure-pages@v3
19+
node-version: 22
20+
cache: yarn
21+
cache-dependency-path: 'userdocs/yarn.lock'
2522
- name: Install dependencies
2623
working-directory: ./userdocs
27-
run: npm install
24+
run: yarn install --frozen-lockfile
2825
- name: Build website
2926
working-directory: ./userdocs
30-
run: npm run build
27+
run: yarn build

0 commit comments

Comments
 (0)