Skip to content

Publish to npm automatically when a version lands on main - #144

Merged
cport1 merged 1 commit into
mainfrom
ci/publish-on-main
Nov 27, 2026
Merged

cport1 merged 1 commit into
mainfrom
ci/publish-on-main

Conversation

@cport1

@cport1 cport1 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Merging a release PR is now the release. On a push to main that changes a package.json (or a manual run), the Publish workflow:

  • lists the packages whose version npm does not have yet (scripts/publish-plan.mjs), core SDK first
  • builds and tests, publishes only those, with provenance
  • waits until the registry shows every package
  • tags vX.Y.Z and creates the GitHub release from the CHANGELOG entry, if missing

Re-runs are safe: published packages, the tag and the release are skipped. Authentication is npm trusted publishing (OIDC); NPM_TOKEN stays as a fallback until each package has a trusted publisher configured on npmjs.com.

Tests: 6 for the planner, added to npm test.

@cport1
cport1 merged commit 9e0212c into main Nov 27, 2026
2 checks passed
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