diff --git a/.changeset/README.md b/.changeset/README.md index c0a4190..126ba24 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -12,4 +12,4 @@ Choose `patch`, `minor`, or `major` and commit the generated Markdown file with bun run changeset --empty ``` -The release workflow creates a version pull request. Merging that pull request updates `package.json` and `CHANGELOG.md`, then creates and pushes a Git tag. This repository never publishes to npm. +The release workflow creates a version pull request. Merging that pull request updates `package.json` and `CHANGELOG.md`, then creates a Git tag and GitHub release. This repository never publishes to npm. diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4f6e034..aa626c4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,3 +44,13 @@ jobs: run: | bun run release:tag git push origin --tags + + - name: Create GitHub release + if: steps.changesets.outputs.hasChangesets == 'false' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + tag="v$(bun -p "require('./package.json').version")" + if ! gh release view "$tag" >/dev/null 2>&1; then + gh release create "$tag" --verify-tag --generate-notes --latest --title "$tag" + fi diff --git a/README.md b/README.md index 1142742..034fa16 100644 --- a/README.md +++ b/README.md @@ -146,4 +146,4 @@ User-facing changes require a Changeset: bun run changeset ``` -The package is private. Releases consist of version updates, changelog entries, and Git tags; the release process never publishes to npm. +The package is private. Releases consist of version updates, changelog entries, Git tags, and GitHub releases; the release process never publishes to npm.