Skip to content

Commit

Permalink
chore: Update supported Docusaurus versions to the latest 2.x version (
Browse files Browse the repository at this point in the history
…#206)

Also update CI to run on newer Node.js versions and GitHub actions.
  • Loading branch information
cmfcmf authored Jun 9, 2024
1 parent 8e218ed commit ca518ac
Show file tree
Hide file tree
Showing 4 changed files with 852 additions and 785 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16.x, 18.x]
node-version: [16.x, 18.x, 20.x, 22.x]
docusaurus-version:
- "v2.4.3"
- "v2.4.1"
- "v2.4.0"
- "v2.3.1"
- "v2.2.0"
Expand All @@ -31,17 +33,17 @@ jobs:
- "canary"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

# Uninstall nodejieba for the moment, as it's not compatible with Node 18 on Windows.
# TODO: Remove this once a new version of nodejieba is released (the fix is already on its master branch).
- run: npm uninstall --ignore-scripts --save -w packages/docusaurus-search-local nodejieba
if: runner.os == 'Windows' && matrix.node-version == '18.x'
if: runner.os == 'Windows' && (matrix.node-version == '18.x' || matrix.node-version == '20.x' || matrix.node-version == '22.x')

- run: npm ci
- run: npm run lint
Expand Down
2 changes: 1 addition & 1 deletion .syncpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"packages": ["**"],
"dependencies": ["@docusaurus/**"],
"dependencyTypes": ["dev"],
"pinVersion": "^2.3.1"
"pinVersion": "^2.4.3"
},
{
"label": "The Docusaurus peer dependencies must all have the lowest version supported by the plugin.",
Expand Down
Loading

0 comments on commit ca518ac

Please sign in to comment.