Skip to content

Commit

Permalink
fix: modify test-release.yml to disable husky in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VicSolWang committed Nov 14, 2023
1 parent 78fd038 commit 37d280c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- run: node --version
- run: npm --version
- run: npm install --ignore-scripts
- run: npm install
- run: npm test
- run: npm run cover:report
- uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm pkg delete scripts.prepare
- run: npm install is-ci
- uses: cycjimmy/semantic-release-action@v4
id: semantic
with:
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"husky:pre-commit": "husky add .husky/pre-commit \"npx lint-staged --config=lint-staged.config.js\"",
"husky:commit-msg": "husky add .husky/commit-msg \"npx --no -- commitlint --edit $1\"",
"husky:init": "husky install && npm run husky:pre-commit && npm run husky:commit-msg",
"prepare": "npm run husky:init"
"prepare": "is-ci || npm run husky:init"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -64,6 +64,7 @@
"c8": "^8.0.1",
"fs-extra": "^11.1.1",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"typescript": "^5.2.2",
Expand Down

0 comments on commit 37d280c

Please sign in to comment.