Skip to content

feat: add publib-github command for creating GitHub releases - #1826

Merged
cdklabs-automation merged 1 commit into
mainfrom
mrgrain/feat/gh-release
Aug 31, 2026
Merged

cdklabs-automation merged 1 commit into
mainfrom
mrgrain/feat/gh-release

Conversation

@mrgrain

@mrgrain mrgrain commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

You can now publish GitHub Releases with publib. The new publib-github command creates a GitHub release for a tag, with release notes from a changelog file. Like all other publishers it is driven by environment variables and supports PUBLIB_DRYRUN:

GITHUB_TOKEN=*** \
GITHUB_RELEASE_TAG_FILE=dist/releasetag.txt \
GITHUB_CHANGELOG_FILE=dist/changelog.md \
npx publib-github

The target repository and commit are inferred from the local git repository (the origin remote and the current HEAD), or can be set explicitly via GITHUB_REPOSITORY and GITHUB_SHA — in GitHub Actions workflows these are already set automatically.

Re-running a release is safe: if a release for the tag already exists, the command succeeds and leaves the existing release untouched. Set GITHUB_PRERELEASE=true to mark the release as a prerelease, and GITHUB_MARK_LATEST=true|false to control whether GitHub labels it as the latest release — useful when publishing patches for older major versions. GitHub Enterprise instances are supported via GITHUB_API_URL.

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@mrgrain
mrgrain deployed to IntegTestCredentials August 30, 2026 15:39 — with GitHub Actions Active
@cdklabs-automation
cdklabs-automation deployed to IntegTestCredentials August 30, 2026 15:40 — with GitHub Actions Active
@mrgrain
mrgrain deployed to IntegTestCredentials August 30, 2026 20:00 — with GitHub Actions Active
@mrgrain
mrgrain force-pushed the mrgrain/feat/gh-release branch from 7911b79 to 24b48af Compare August 30, 2026 20:02
@mrgrain
mrgrain deployed to IntegTestCredentials August 30, 2026 20:02 — with GitHub Actions Active
@cdklabs-automation
cdklabs-automation added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 6747722 Aug 31, 2026
10 checks passed
@cdklabs-automation
cdklabs-automation deleted the mrgrain/feat/gh-release branch August 31, 2026 09:06

This branch was successfully deployed

1 active deployment
IntegTestCredentials — 24b48afb Deployed Aug 30, 2026 by mrgrain via integ #3355
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.

3 participants