Skip to content

ci: changesets release workflow (npm Trusted Publishing)#5

Merged
miguelrisero merged 1 commit into
mainfrom
mr/release-workflow
Jun 10, 2026
Merged

ci: changesets release workflow (npm Trusted Publishing)#5
miguelrisero merged 1 commit into
mainfrom
mr/release-workflow

Conversation

@miguelrisero

Copy link
Copy Markdown
Contributor

Adds .github/workflows/release.yml — the changesets release loop:

  1. While changesets exist on 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.
  2. Merging that PR runs bun run release (build → changeset publish), publishing all three @runflow-io/* packages and creating GitHub releases.

Auth = npm Trusted Publishing (OIDC), no NPM_TOKEN secret. 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 because changeset publish shells 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 main carrying changesets opens the version PR.

🤖 Generated with Claude Code

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.
@miguelrisero miguelrisero merged commit baf18f5 into main Jun 10, 2026
1 check passed
@miguelrisero miguelrisero deleted the mr/release-workflow branch June 10, 2026 21:02
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