fix: add --ignore-scripts to npm publish to prevent CI build failure
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user