Skip to content

Commit

Permalink
[CI] Simplify cSpell dict install and other script tweaks (#5010)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Aug 9, 2024
1 parent 6cd83a2 commit 3c3342e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm run install:dict --ignore-scripts
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: npm run _install:dict --ignore-scripts
- uses: streetsidesoftware/cspell-action@v6
with:
# Files should be consistent with check:spelling files
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
"_hugo": "hugo --cleanDestinationDir",
"_install:dict": "npm install -D $(npm run -s _list:dict)",
"_install:netlify-cli": "npm list netlify-cli || npm install -O netlify-cli",
"_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$'",
"_list:dict": "grep '^\\s*\"@cspell' package.json | awk -F: '{print $1}' | tr -d '\"'",
"_list:fix:*": "npm run --loglevel=warn | grep -Ee '^\\s*fix:[^:]+$' | grep -v 'fix:all'",
Expand Down Expand Up @@ -73,8 +75,6 @@
"fix": "npm run fix:all",
"format": "npm run _check:format -- --write && npm run _check:format:ja+zh -- --write",
"get:submodule": "npm run _get:${GET:-submodule}",
"install:dict": "bash -c 'for pkg in \"$(npm run -s _list:dict)\"; do npm list $pkg || npm install $pkg; done'",
"install:netlify-cli": "npm list netlify-cli || npm install netlify-cli",
"log:check:links": "npm run check:links | tee tmp/build-log.txt",
"make:public": "make public ls-public",
"netlify-build:preview": "npm run seq -- build:preview diff:check",
Expand All @@ -92,7 +92,7 @@
"prenetlify-build:production": "echo 'IgnoreTagAttribute: rel' >> .htmltest.yml",
"prepare": "npm run seq -- get:submodule _prepare:docsy",
"preserve:hugo": "npm run _prebuild",
"preserve:netlify": "npm run seq -- _prebuild install:netlify-cli",
"preserve:netlify": "npm run seq -- _prebuild _install:netlify-cli",
"schemas:update": "npm run update:submodule content-modules/opentelemetry-specification",
"seq": "bash -c 'for cmd in \"$@\"; do npm run $cmd || exit 1; done' - ",
"serve:hugo": "npm run _serve:hugo -- --renderToMemory",
Expand Down

0 comments on commit 3c3342e

Please sign in to comment.