Skip to content

Commit 35664f6

Browse files
Upgrade docusaurus and GH workflows (#1660)
1 parent 309adcd commit 35664f6

File tree

9 files changed

+4321
-19248
lines changed

9 files changed

+4321
-19248
lines changed

.github/workflows/build-lint.yml

-62
This file was deleted.

.github/workflows/build.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build and lint
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
build:
8+
name: Build
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Build
16+
uses: ConsenSys/docs-gha/build@main
17+
with:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+

.github/workflows/lint.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Check for lint, spelling and link errors
3+
4+
on:
5+
workflow_call:
6+
7+
jobs:
8+
lint:
9+
name: Lint Code Base, Spelling, Link Check
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Lint
17+
uses: ConsenSys/docs-gha/lint@main
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
linkCheck:
22+
name: Link Checking
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
file-extensions: [".md", ".mdx"]
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: LinkCheck
30+
uses: ConsenSys/docs-gha/linkcheck@main
31+
with:
32+
FILE_EXTENSION: ${{ matrix.file-extensions }}

.github/workflows/main.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@ jobs:
1919
run: ${{ steps.download-actionlint.outputs.executable }} -color
2020
shell: bash
2121

22-
build-lint:
23-
name: Build and lint
24-
uses: ./.github/workflows/build-lint.yml
22+
build:
23+
name: Build
24+
uses: ./.github/workflows/build.yml
25+
26+
lint:
27+
name: Lint
28+
uses: ./.github/workflows/lint.yml
2529

2630
all-jobs-completed:
2731
name: All jobs completed
2832
runs-on: ubuntu-latest
2933
needs:
3034
- check-workflows
31-
- build-lint
35+
- build
36+
- lint
3237
outputs:
3338
PASSED: ${{ steps.set-output.outputs.PASSED }}
3439
steps:

.github/workflows/publish-main-docs.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Checkout the repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

1919
- name: Use Node.js
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v4
2121
with:
22+
registry-url: https://registry.npmjs.org/
2223
node-version-file: '.nvmrc'
23-
cache: 'yarn'
2424

25-
- name: Install npm dependencies
26-
run: yarn --immutable
27-
28-
- name: Run build script
29-
run: yarn build
25+
- name: npm build
26+
shell: bash
27+
run: |
28+
npm ci --only=production
29+
npm run build
3030
3131
- name: Deploy to `./` directory of `gh-pages` branch
3232
uses: peaceiris/actions-gh-pages@v3

.github/workflows/update-version.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
- name: Use Node.js
3434
uses: actions/setup-node@v4
3535
with:
36+
registry-url: https://registry.npmjs.org/
3637
node-version-file: '.nvmrc'
37-
cache: 'yarn'
3838

3939
- name: Update version
4040
run: .github/scripts/update-version.sh

0 commit comments

Comments
 (0)