-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync docusaurus plugin versions (#9608)
* check docusaurus plugin version in CI add CI check that fails if docusaurus plugins are out of sync with core * bump plugins * provide upgrade advice
- Loading branch information
Showing
3 changed files
with
388 additions
and
2,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
# Docusaurus outputs some important errors as log messages | ||
# but doesn't actually fail | ||
# https://github.com/facebook/docusaurus/blob/v2.4.3/packages/docusaurus/src/server/siteMetadata.ts#L75-L92 | ||
# this script runs `docusaurus build`. If it outputs any [ERROR]s, we exit with 1 | ||
|
||
if ( npm run build 2>&1 | grep '\[ERROR\]' ) | ||
then | ||
echo "You probably need to run: npm update @docusaurus/preset-classic" | ||
exit 1 | ||
else | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Check Docusaurus Plugin Versions | ||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
push: | ||
branches-ignore: | ||
- 'gh-pages' | ||
- 'dependabot/**' | ||
|
||
jobs: | ||
check-docusaurus-versions: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
with: | ||
node-version: 18 | ||
cypress: true | ||
|
||
- run: .github/scripts/check-docusaurus-versions.sh |
Oops, something went wrong.