Skip to content

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

fix(release): use OIDC trusted publishing only for npm publish (#67)

Cobus Greyling32c5c3343989
diff --git a/.github/workflows/release-loop-audit.yml b/.github/workflows/release-loop-audit.yml
index efb2c8d..b1cd34a 100644
--- a/.github/workflows/release-loop-audit.yml
+++ b/.github/workflows/release-loop-audit.yml
@@ -32,8 +32,6 @@ jobs:
npm run build
npm test
- - name: Publish to npm
+ - name: Publish to npm (OIDC trusted publishing)
working-directory: tools/loop-audit
- run: npm publish --access public --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
\ No newline at end of file
+ run: npm publish --access public --provenance
\ No newline at end of file
diff --git a/.github/workflows/release-loop-cost.yml b/.github/workflows/release-loop-cost.yml
index d0a11c5..467104a 100644
--- a/.github/workflows/release-loop-cost.yml
+++ b/.github/workflows/release-loop-cost.yml
@@ -32,8 +32,6 @@ jobs:
npm run build
npm test
- - name: Publish to npm
+ - name: Publish to npm (OIDC trusted publishing)
working-directory: tools/loop-cost
- run: npm publish --access public --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
\ No newline at end of file
+ run: npm publish --access public --provenance
\ No newline at end of file
diff --git a/.github/workflows/release-loop-init.yml b/.github/workflows/release-loop-init.yml
index 5cf5fe6..17122e7 100644
--- a/.github/workflows/release-loop-init.yml
+++ b/.github/workflows/release-loop-init.yml
@@ -28,6 +28,4 @@ jobs:
run: |
npm ci
npm test
- npm publish --access public --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
\ No newline at end of file
+ npm publish --access public --provenance
\ No newline at end of file
diff --git a/docs/RELEASE.md b/docs/RELEASE.md
index ed0a23a..8b8e808 100644
--- a/docs/RELEASE.md
+++ b/docs/RELEASE.md
@@ -20,7 +20,7 @@ Link npm to GitHub, then for **each package** on [npmjs.com](https://www.npmjs.c
Names must match **exactly** (case-sensitive). No `NPM_TOKEN` secret is required when trusted publishing is configured.
-**Legacy fallback:** add an npm Automation token as repo secret `NPM_TOKEN` and restore `NODE_AUTH_TOKEN` in the publish steps.
+**Legacy fallback:** add an npm Automation token as repo secret `NPM_TOKEN` and set `NODE_AUTH_TOKEN` in the publish steps. Do **not** set `NODE_AUTH_TOKEN` when trusted publishing is active — an expired token overrides OIDC and causes `E404` on publish.
## Version bump