From 132bb3c3730fabb7dc55769ee00c1ab52b6d52e4 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Fri, 5 Dec 2025 04:16:53 +0900 Subject: [PATCH] fix: add --ignore-scripts to npm publish to prevent CI build failure --- package.json | 2 +- script/publish.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9fdfd3b..921c3b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "oh-my-opencode", - "version": "0.1.3", + "version": "0.1.4", "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/script/publish.ts b/script/publish.ts index 07deae5..8843e37 100644 --- a/script/publish.ts +++ b/script/publish.ts @@ -63,10 +63,11 @@ async function generateChangelog(previous: string): Promise { async function buildAndPublish(): Promise { console.log("\nPublishing to npm...") + // --ignore-scripts: workflow에서 이미 빌드 완료, prepublishOnly 재실행 방지 if (process.env.CI) { - await $`npm publish --access public --provenance` + await $`npm publish --access public --provenance --ignore-scripts` } else { - await $`npm publish --access public` + await $`npm publish --access public --ignore-scripts` } }