ci: changesets + OIDC trusted publishing release flow#182
Merged
Conversation
Mirror the tokenless release setup used in react-router-devtools and vite-plugin-icons-spritesheet. - changesets: add .changeset config (ignoring the private react-router-app test app) + changeset/changeset:version/changeset:publish scripts. changeset:version also runs `npm install --package-lock-only` so the lockfile stays in sync (npm ci is strict). - Replace the release-triggered `npm publish` + NPM_TOKEN workflow with a push-to-main changesets flow that publishes via npm OIDC Trusted Publishing — .npmrc provenance=true + id-token:write, no NPM_TOKEN, no PAT. Pinned action SHAs, repo+main guard, non-cancelling concurrency, Node 24 (npm 11) for OIDC. - Fix repository.url/bugs/homepage/readme (forge-42 + forge42dev) -> code-forge-io so build provenance validates. No version change: 7.1.1 is already published; the flow stays idle until the first changeset lands.
commit: |
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.
Brings
remix-hook-formonto the same tokenless release flow asreact-router-devtoolsandvite-plugin-icons-spritesheet.What this does
.changeset/config.json(ignores the privatereact-router-apptest app) +changeset/changeset:version/changeset:publishscripts.changeset:versionalso runsnpm install --package-lock-onlyso the lockfile stays in sync (npm ciis strict).pushtomain+ guardedworkflow_dispatch):changesets/actionopens a "🚀 Release PR", then publishes via npm OIDC Trusted Publishing —.npmrc provenance=true+id-token: write, noNPM_TOKEN, no PAT. Pinned action SHAs,code-forge-io+mainguard, non-cancelling concurrency, Node 24 (npm 11) for OIDC. Replaces the old "publish on GitHub release" + token flow.repository.url/bugs/homepage/readme(forge-42+forge42dev) →code-forge-io, so build provenance validates (otherwise it would 422 like RR devtools did).No release in this PR
7.1.1is already published andmainhas no unreleased commits, so there's nothing to cut. The flow stays idle until the first changeset lands — from then on: merge a PR with a changeset → a 🚀 Release PR opens → merge it → publishes with provenance.Configure a trusted publisher for
remix-hook-formon npmjs.com:package settings → Publishing access → Trusted publisher → GitHub Actions
code-forge-io/remix-hook-formpublish.yaml🤖 Generated with Claude Code