Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .changeset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading