Skip to content

feat(ci): migrate to npm OIDC Trusted Publishing#102

Merged
samuelds merged 4 commits into
developfrom
feat/npm-oidc-trusted-publishing
Apr 29, 2026
Merged

feat(ci): migrate to npm OIDC Trusted Publishing#102
samuelds merged 4 commits into
developfrom
feat/npm-oidc-trusted-publishing

Conversation

@samuelds
Copy link
Copy Markdown
Contributor

Summary

  • Add npm install -g npm@latest step before each publish step (enables OIDC support via npm >= 11.5.1)
  • id-token: write and registry-url were already present — no change needed there
  • NODE_AUTH_TOKEN env var kept as fallback during transition (can be removed once Trusted Publishers configured on npmjs.com)

What changes

File Change
.github/workflows/stable-publish.yml Add npm upgrade step before publish
.github/workflows/dev-publish.yml Add npm upgrade step before publish

Manual action required

Before this PR enables zero-token publishing, configure Trusted Publishers on npmjs.com:

See /home/samuelds/projects/focusmcp/RELEASE_OIDC_SETUP.md for full instructions.

Rollback

NPM_TOKEN secret is untouched. NODE_AUTH_TOKEN fallback remains in workflows.

🤖 Generated with Claude Code

claude and others added 4 commits April 28, 2026 21:52
…thin wrapper

Required for focus_update + focus_upgrade MCP tools (thin wrapper depends on
executeUpgrade exported from @focus-mcp/core 1.2.0).
Add npm upgrade step (npm@latest >= 11.5.1) before each publish step to
enable OIDC token-based auth. NODE_AUTH_TOKEN kept as fallback during
transition until Trusted Publishers are configured on npmjs.com.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Resolve conflicts: keep OIDC npm upgrade step in workflows,
take develop versions for package.json (2.2.0, core ^1.5.0)
and CHANGELOG entries.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@samuelds samuelds merged commit 25c5dda into develop Apr 29, 2026
10 checks passed
@samuelds samuelds deleted the feat/npm-oidc-trusted-publishing branch April 30, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant