Skip to content

Commit 132bb3c

Browse files
committed
fix: add --ignore-scripts to npm publish to prevent CI build failure
1 parent 180d16b commit 132bb3c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oh-my-opencode",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

script/publish.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ async function generateChangelog(previous: string): Promise<string> {
6363

6464
async function buildAndPublish(): Promise<void> {
6565
console.log("\nPublishing to npm...")
66+
// --ignore-scripts: workflow에서 이미 빌드 완료, prepublishOnly 재실행 방지
6667
if (process.env.CI) {
67-
await $`npm publish --access public --provenance`
68+
await $`npm publish --access public --provenance --ignore-scripts`
6869
} else {
69-
await $`npm publish --access public`
70+
await $`npm publish --access public --ignore-scripts`
7071
}
7172
}
7273

0 commit comments

Comments
 (0)