Skip to content

ci(release): add GitHub Release creation on tag releases#5

Open
anmho wants to merge 1 commit intomainfrom
ci/release-gh-cli
Open

ci(release): add GitHub Release creation on tag releases#5
anmho wants to merge 1 commit intomainfrom
ci/release-gh-cli

Conversation

@anmho
Copy link
Copy Markdown
Owner

@anmho anmho commented Apr 13, 2026

Context

Release workflow was publishing to npm but not creating a GitHub Release artifact page.

Summary

  • grant contents: write + id-token: write in release workflow
  • verify tag version matches package.json on tag releases
  • run npm pack during release
  • create GitHub Release (softprops/action-gh-release) with generated notes and attached .tgz

Validation

  • workflow updated and pushed on this branch
  • no command/runtime behavior changes

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa2c5d71dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +67 to +69
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Create GitHub release only after npm publish succeeds

On tag pushes, this step executes before Publish To npm, so a failing npm publish (for example, an expired NPM_TOKEN or an already-published version) still leaves behind a GitHub Release and attached tarball for a version that is not actually available on npm. Reordering release creation to run after successful publish (or explicitly gating it on publish success) avoids publishing misleading release artifacts.

Useful? React with 👍 / 👎.

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