Skip to content

Add per-package GitHub Release job#19

Merged
willwashburn merged 2 commits intomainfrom
releases
Apr 20, 2026
Merged

Add per-package GitHub Release job#19
willwashburn merged 2 commits intomainfrom
releases

Conversation

@willwashburn
Copy link
Copy Markdown
Member

Expose the bumped package versions from the publish job and add a parallel 'create-release' job that creates one GitHub Release per published package. The job is matrixed across packages, checks whether each package was published via the publish.outputs.versions, checks prerelease status, checks out the package tag, prefers a per-package CHANGELOG entry for release notes (falls back to generated notes), and creates the appropriate release (stable with changelog, stable with auto notes, or prerelease). Also grants contents write permission and gates execution on dry-run/custom version inputs.

Expose the bumped package versions from the publish job and add a parallel 'create-release' job that creates one GitHub Release per published package. The job is matrixed across packages, checks whether each package was published via the publish.outputs.versions, checks prerelease status, checks out the package tag, prefers a per-package CHANGELOG entry for release notes (falls back to generated notes), and creates the appropriate release (stable with changelog, stable with auto notes, or prerelease). Also grants contents write permission and gates execution on dry-run/custom version inputs.
Copy link
Copy Markdown

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

This PR extends the existing Publish Package GitHub Actions workflow to expose the per-package versions computed during publishing and then create one GitHub Release per published package tag via a parallel matrix job.

Changes:

  • Expose publish job output versions from the version bump step.
  • Add a create-release matrix job that, per package, detects whether it was published and then creates the appropriate GitHub Release (stable w/ changelog, stable w/ auto notes, or prerelease).

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

Comment thread .github/workflows/publish.yml Outdated
: > "$out"
if [ -f "$file" ]; then
awk -v v="## [$ver]" '
$0 ~ "^" v { flag=1; print; next }
Replace the regex-based ^v match with index($0, prefix) == 1 when locating the version header in the release notes. This ensures a literal prefix match (avoiding regex metacharacter issues) and more reliably extracts the section for the given version.
@willwashburn willwashburn merged commit 98e682a into main Apr 20, 2026
1 check passed
@willwashburn willwashburn deleted the releases branch April 20, 2026 12:14
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