Skip to content

Commit

Permalink
fix: fix GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Apr 1, 2024
1 parent 66487da commit 9a50a7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ jobs:
node-version: '20.x'
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run build:core
- run: npm test
- run: npm run test:parser
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/local/bin/bash
rm -rf dist/
tsc && npm run declaration && node ./dist/bin/parserTests.js
tsc && npm run declaration
if [[ $? -eq 0 ]]
then
err=$(tsc --project tsconfig.dist.json 2>&1 | bash sed.sh -E '/error TS2309:/d')
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"toc": "node ./dist/bin/toc.js",
"declaration": "grep -rl --include='*.d.ts' '@private' dist/ | xargs bash sed.sh -i -E '/^\\s+\\/\\*\\* @private/,+1d'; node ./dist/bin/declaration.js",
"prepublishOnly": "npm run build && rm dist/internal.js dist/[pu]*/*.d.ts",
"build": "bash build.sh",
"build:core": "bash build.sh",
"build": "npm run build:core && node ./dist/bin/parserTests.js",
"diff": "bash diff.sh",
"diff:stat": "f() { git diff --stat --ignore-all-space --color=always $1 $2 -- . ':!extensions/' ':!bin/' | grep '\\.ts'; }; f",
"lint:ts": "tsc --noEmit && eslint --cache .",
Expand Down

0 comments on commit 9a50a7b

Please sign in to comment.