Skip to content

ci: add GitHub release creation to publish workflow#77

Open
iamfj wants to merge 1 commit intomainfrom
feat/publish-github-release
Open

ci: add GitHub release creation to publish workflow#77
iamfj wants to merge 1 commit intomainfrom
feat/publish-github-release

Conversation

@iamfj
Copy link
Copy Markdown
Collaborator

@iamfj iamfj commented Apr 7, 2026

Summary

After publishing to npm, the publish workflow now automatically creates a GitHub release with release notes extracted from CHANGELOG.md, matching the format of previous releases (e.g. v2025.12.3, v2025.12.2).

Changes

  • contents permission: readwrite (required for gh release create)
  • Changelog extraction step:
    • Extracts the version section body via awk
    • Extracts the compare URL from the [version]: url reference link
    • Converts ### headings to ## (CHANGELOG nests under ## [version], releases use top-level ##)
    • Strips --- separators and collapses blank lines
    • Prepends **Full Changelog**: <compare-url> header
  • Release creation step: Runs gh release create with --verify-tag and the extracted notes
  • Verify step: Now includes the release URL in output

Context

v2026.4.1 was published to npm but no GitHub release was created. The existing v2026.4.1 release has been manually fixed to match the format of previous releases. This PR ensures all future tag-triggered publishes create a correctly formatted GitHub release automatically.

Testing

  • Changelog extraction tested locally against v2026.4.1 and v2025.12.3 — output matches the established release format
  • Workflow-only change, no code changes — all existing CI checks pass

After npm publish, the workflow now extracts release notes from
CHANGELOG.md and creates a GitHub release using gh CLI.

Changes:
- Bump contents permission from read to write
- Add changelog extraction step using awk
- Add gh release create step with --verify-tag
- Add release URL to verify step output
@iamfj iamfj force-pushed the feat/publish-github-release branch from fe31cdd to bf8e645 Compare April 7, 2026 18:24
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