ci: changesets release workflow (npm Trusted Publishing)#5
Merged
Conversation
On push to main: opens/updates a 'release: version packages' PR while changesets are pending; publishes to npm + creates GitHub releases when that PR merges. Auth is npm Trusted Publishing — each @runflow-io package trusts this workflow file, so no NPM_TOKEN secret exists to leak or rotate, and packages get provenance attestations automatically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/release.yml— the changesets release loop:main(PR RUN-384: close the SDK gaps blocking external Studio forks #4 ships three), the action keeps a "release: version packages" PR open with the bumps (0.0.3 → 0.1.0) + changelogs.bun run release(build →changeset publish), publishing all three@runflow-io/*packages and creating GitHub releases.Auth = npm Trusted Publishing (OIDC), no
NPM_TOKENsecret. Requires the trusted-publisher connection on each package (npmjs.com → package → Settings → Trusted Publisher → GitHub Actions →runflow-io/runflow-js/release.yml) — being set up in parallel. Node 24 is used becausechangeset publishshells out to npm and OIDC needs npm ≥ 11.5. Provenance attestations come for free.Repo prerequisite (one-time): Settings → Actions → General → Workflow permissions → Read and write + Allow GitHub Actions to create and approve pull requests.
Merge order: this PR and #4 in either order; the first push to
maincarrying changesets opens the version PR.🤖 Generated with Claude Code