Skip to content

chore: switch to semantic-release with OIDC trusted publishing - #295

Merged
mrsimpson merged 2 commits into
mainfrom
chore/semantic-release-trusted-publishing
Sep 21, 2026
Merged

mrsimpson merged 2 commits into
mainfrom
chore/semantic-release-trusted-publishing

Conversation

@mrsimpson

Copy link
Copy Markdown
Collaborator

What

Replaces the current release pipeline (mathieudutour/github-tag-action + manual pnpm publish + NPM_TOKEN) with semantic-release and npm trusted publishing via OIDC.

Changes

  • .releaserc.json — new semantic-release config that:

    • determines version bump from conventional commits
    • bumps all 4 package.json versions in sync
    • publishes each package from its own pkgRoot
    • commits changelog + bumped versions back to main via @semantic-release/git
    • creates the GitHub release with notes
  • release.yml — simplified: removes the old tag action, version bump script, and manual publish step. Adds id-token: write for OIDC. No NPM_TOKEN needed anymore.

  • publishConfig.provenance: true — added to all 4 published packages (@codemcp/workflows, @codemcp/workflows-server, @codemcp/workflows-opencode, @codemcp/workflows-opencode-tui).

  • semantic-release deps added to root devDependencies + lockfile updated.

Pre-requisite

Trusted publishing must be configured on npmjs.com for each of the 4 packages before this merges (point to this repo + release.yml workflow).

- Replace mathieudutour/github-tag-action + manual pnpm publish with semantic-release
- Add .releaserc.json: bumps all 4 package versions in sync, publishes each
  package from its pkgRoot, commits changelog + versions back via @semantic-release/git
- Add id-token: write permission for OIDC provenance (no NPM_TOKEN needed)
- Add provenance: true to publishConfig in all 4 published packages
- Add semantic-release + plugins to devDependencies
@mrsimpson
mrsimpson merged commit d45ca3e into main Sep 21, 2026
3 checks passed
@mrsimpson
mrsimpson deleted the chore/semantic-release-trusted-publishing branch September 21, 2026 14:00
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