Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

ci: ignore install scripts in release workflows (#1839)

Affaan Mustafa33db548be300
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a52fb8488..32122c138 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -26,7 +26,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
- run: npm ci
+ run: npm ci --ignore-scripts
- name: Verify OpenCode package payload
run: node tests/scripts/build-opencode.test.js
diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml
index a6fe2cec7..4368a0c19 100644
--- a/.github/workflows/reusable-release.yml
+++ b/.github/workflows/reusable-release.yml
@@ -50,7 +50,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
- run: npm ci
+ run: npm ci --ignore-scripts
- name: Verify OpenCode package payload
run: node tests/scripts/build-opencode.test.js
diff --git a/tests/scripts/release-publish.test.js b/tests/scripts/release-publish.test.js
index 6a061b504..6365161da 100644
--- a/tests/scripts/release-publish.test.js
+++ b/tests/scripts/release-publish.test.js
@@ -41,6 +41,10 @@ for (const workflow of [
assert.match(content, /registry-url:\s*['"]https:\/\/registry\.npmjs\.org['"]/);
});
+ test(`${workflow} ignores dependency lifecycle scripts before privileged publish`, () => {
+ assert.match(content, /npm ci --ignore-scripts/);
+ });
+
test(`${workflow} checks whether the tagged npm version already exists`, () => {
assert.match(content, /Check npm publish state/);
assert.match(content, /npm view "\$\{PACKAGE_NAME\}@\$\{PACKAGE_VERSION\}" version/);