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.

fix: wire npm auth into release publish

Affaan Mustafab5c4d2beb9ff
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9dba67e0d..b8252d63e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -68,6 +68,8 @@ jobs:
- name: Publish npm package
if: steps.npm_publish_state.outputs.already_published != 'true'
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
- name: Generate release highlights
diff --git a/.github/workflows/reusable-release.yml b/.github/workflows/reusable-release.yml
index 8664dabbc..4e4aaa485 100644
--- a/.github/workflows/reusable-release.yml
+++ b/.github/workflows/reusable-release.yml
@@ -12,6 +12,9 @@ on:
required: false
type: boolean
default: true
+ secrets:
+ NPM_TOKEN:
+ required: false
permissions:
contents: write
@@ -77,6 +80,8 @@ jobs:
- name: Publish npm package
if: steps.npm_publish_state.outputs.already_published != 'true'
+ env:
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
- name: Generate release highlights
diff --git a/tests/scripts/release-publish.test.js b/tests/scripts/release-publish.test.js
index eab473e6f..b09c6979e 100644
--- a/tests/scripts/release-publish.test.js
+++ b/tests/scripts/release-publish.test.js
@@ -48,6 +48,7 @@ for (const workflow of [
test(`${workflow} publishes new tag versions to npm`, () => {
assert.match(content, /npm publish --access public --provenance/);
+ assert.match(content, /NODE_AUTH_TOKEN:\s*\$\{\{\s*secrets\.NPM_TOKEN\s*\}\}/);
});
}