Skip to content

Make a release one pull request merge - #89

Closed
proxymeshai wants to merge 7 commits into
mainfrom
cursor/release-workflow-c221
Closed

proxymeshai wants to merge 7 commits into
mainfrom
cursor/release-workflow-c221

Conversation

@proxymeshai

@proxymeshai proxymeshai commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Releasing is one pull request merge. Prepare release bumps package.json and package-lock.json with npm version, sets jsr.json with scripts/release.mjs bump, moves the changelog, and runs the release checks before it pushes release/X.Y.Z. Release check repeats those checks on pull requests into main. Merging publishes with npm publish --provenance --access public and npx --yes jsr@0.14.3 publish, then gh release view or gh release create tags vX.Y.Z. Trusted publishing on npm and JSR is unchanged.

scripts/release.mjs resolves a version, bumps jsr.json, moves the changelog section, prints the notes, and checks the tree. Tags v-0.2.0 through v-0.4.0 stay as they are.

No open release/X.Y.Z pull request. Closed, unmerged PR #70 (release/1.0.0, package version still 0.3.0) would fail Release check if it were reopened.

Repository settings

  1. Allow GitHub Actions to create and approve pull requests (Prepare release opens the PR). To run pull request checks on that PR, close and reopen it.
  2. If branch protection still requires Release on merge, drop it. Don't make Release check a required check for the same reason.
Open in Web Open in Cursor 

cursoragent and others added 7 commits November 12, 2026 22:03
Prepare release opens release/X.Y.Z for a person to merge. Merging publishes to npm and JSR with OIDC, then tags vX.Y.Z from the changelog.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
npm version bumps the package manifests, scripts/release.mjs only moves the changelog and checks it, and the publish workflow calls npm and jsr directly.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
Move the jsr.json bump into release.mjs, check the release version before publish, and stop telling the owner to require Release check.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
A push to main always runs lookup. publish and github-release run only after a release pull request from this repository.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
Publish uses OIDC without a deployment environment. RELEASING.md tells the owner to leave the npm trusted publisher environment field blank.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
Owner setup step 1 says to verify the existing publisher first and only replace it when workflow or environment differs.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
Remove npm, JSR, and secret steps from RELEASING.md; trusted publishing is already configured.

Co-authored-by: ProxyMesh AI <proxymeshai@users.noreply.github.com>
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.

2 participants