Skip to content

Implement GitHub release creation in CI workflow#239

Merged
bourgeoa merged 1 commit intomainfrom
github-release
Mar 30, 2026
Merged

Implement GitHub release creation in CI workflow#239
bourgeoa merged 1 commit intomainfrom
github-release

Conversation

@bourgeoa
Copy link
Copy Markdown
Contributor

Add GitHub release step after npm publish in CI workflow.

Add GitHub release step after npm publish in CI workflow.
Copilot AI review requested due to automatic review settings March 30, 2026 14:41
@bourgeoa bourgeoa enabled auto-merge March 30, 2026 14:41
@bourgeoa bourgeoa merged commit fcff781 into main Mar 30, 2026
8 checks passed
@bourgeoa bourgeoa deleted the github-release branch March 30, 2026 14:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds automated GitHub Release creation to the CI workflow so that, after publishing to npm from main, the workflow also creates (or reuses) the corresponding vX.Y.Z tag and generates GitHub release notes.

Changes:

  • Introduces a new github-release job that runs after npm-publish-latest.
  • Uses GitHub CLI (gh) to create a release (idempotently) and generate release notes based on the package version in package.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +93 to +94
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
permissions:
Copy link

Copilot AI Mar 30, 2026

Choose a reason for hiding this comment

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

The workflow supports workflow_dispatch, and npm-publish-latest can run on manual dispatch (it only checks github.ref). However, this github-release job is additionally gated to github.event_name == 'push', so manual publishes won’t create a corresponding GitHub release. Consider either removing the event_name check (so dispatch runs also create a release) or updating npm-publish-latest to also be push-only if that’s the intent.

Copilot uses AI. Check for mistakes.
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