Skip to content

Commit 6ae1b32

Browse files
committed
fix: add .releaserc.json and skip prepublishOnly/prepare in CI for OIDC npm publish
1 parent 7d7a2e2 commit 6ae1b32

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.releaserc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"branches": ["main"],
3+
"plugins": [
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
6+
"@semantic-release/npm",
7+
"@semantic-release/github"
8+
]
9+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"storybook:clean": "rimraf storybook-static",
2929
"commit": "lint-staged && git-cz -n",
3030
"build": "rollup -c",
31-
"prepare": "husky",
32-
"prepublishOnly": "rimraf dist && npm run build",
31+
"prepare": "node -e \"process.env.CI||require('child_process').execSync('npx husky',{stdio:'inherit'})\"",
32+
"prepublishOnly": "node -e \"process.env.CI||require('child_process').execSync('rimraf dist && npm run build',{stdio:'inherit'})\"",
3333
"lint": "eslint --fix src test",
3434
"typecheck": "tsc --noEmit",
3535
"test": "vitest run",

0 commit comments

Comments
 (0)