Skip to content

publish: create a GitHub release after each npm publish - #122

Merged
petersalomonsen merged 3 commits into
masterfrom
publish-github-release
Aug 22, 2026
Merged

petersalomonsen merged 3 commits into
masterfrom
publish-github-release

Conversation

@petersalomonsen

Copy link
Copy Markdown
Owner

Summary

Makes GitHub releases part of the release routine: after a successful npm publish, the publish workflow now runs gh release create "v$NEWVERSION" --generate-notes, tagging the released commit and notifying watchers/stargazers.

  • permissions.contents raised from read to write (needed to create the tag + release; provenance still uses id-token: write).
  • GH_TOKEN provided to the step from github.token for the gh CLI.
  • Release notes are auto-generated from PRs merged since the previous tag — v0.0.17, created manually today, is the baseline.
  • Runs only inside the real-publish branch of the version check, so dry-runs and no-change pushes never create releases.

Merging this PR does not publish or release anything (version is unchanged); the routine takes effect on the next version bump.

🤖 Generated with Claude Code

petersalomonsen and others added 2 commits July 17, 2026 11:30
Every successful npm publish now also tags v<version> and creates a
GitHub release with auto-generated notes, so watchers and stargazers
are notified. Requires contents: write; the v0.0.17 release was created
manually and serves as the baseline tag for generated notes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Default CI job hung twice today on master pushes (the intermittent
install hang known from #115), each time blocking as in_progress toward
GitHub's 6-hour default timeout. Healthy runs finish in under 10
minutes; a 30-minute cap turns a hang into a visible failure that can
simply be rerun.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@petersalomonsen

Copy link
Copy Markdown
Owner Author

Added a second commit: all CI and publish jobs now have timeout-minutes: 30. The Default CI job hung twice today on master pushes (same intermittent install hang as #115) and sat in_progress for hours toward the 6-hour default timeout — with the cap, a hang fails visibly within 30 minutes and can just be rerun.

@petersalomonsen
petersalomonsen merged commit e1d908f into master Aug 22, 2026
6 checks passed
@petersalomonsen
petersalomonsen deleted the publish-github-release branch August 22, 2026 07:45
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