fix: add --ignore-scripts to npm publish to prevent CI build failure

This commit is contained in:
YeonGyu-Kim
2025-12-05 04:16:53 +09:00
parent 180d16b977
commit 132bb3c373
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "oh-my-opencode", "name": "oh-my-opencode",
"version": "0.1.3", "version": "0.1.4",
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features", "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

View File

@@ -63,10 +63,11 @@ async function generateChangelog(previous: string): Promise<string> {
async function buildAndPublish(): Promise<void> { async function buildAndPublish(): Promise<void> {
console.log("\nPublishing to npm...") console.log("\nPublishing to npm...")
// --ignore-scripts: workflow에서 이미 빌드 완료, prepublishOnly 재실행 방지
if (process.env.CI) { if (process.env.CI) {
await $`npm publish --access public --provenance` await $`npm publish --access public --provenance --ignore-scripts`
} else { } else {
await $`npm publish --access public` await $`npm publish --access public --ignore-scripts`
} }
} }