Repository navigation
ci: create GitHub releases after npm publishing #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,3 +71,24 @@ jobs: | |
| printf '%s\n' "$newer" >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| github-release: | ||
| name: Create GitHub release | ||
| needs: publish | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| permissions: | ||
| contents: write | ||
| env: | ||
| TAG: ${{ github.ref_name }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| GH_REPO: ${{ github.repository }} | ||
| steps: | ||
| - name: Create release | ||
| timeout-minutes: 2 | ||
| run: | | ||
| if gh release view "$TAG" >/dev/null 2>&1; then | ||
| echo "Release $TAG already exists" | ||
| exit 0 | ||
| fi | ||
| gh release create "$TAG" --verify-tag --generate-notes | ||
|
Comment on lines
+75
to
+94
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Medium · Release notes use wrong baseline When an earlier tag's release job is delayed while a later tag's publish and release finish first, the concurrency group serializes only Serialize release creation in tag order or specify the intended previous tag when generating notes. Prompt for AI agentsIn `.github/workflows/release.yml` at lines 75-94:
**Release notes use wrong baseline**
When an earlier tag's release job is delayed while a later tag's publish and release finish first, the concurrency group serializes only `publish`, so a later tag's `github-release` job can create its release before an earlier tag's job. `--generate-notes` can then use the wrong previous release as its baseline, producing notes that include changes from the earlier release.
Serialize release creation in tag order or specify the intended previous tag when generating notes. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium · Concurrent release runs fail
When two runs for the same tag reach the release job at the same time,
gh release viewlets both runs proceed, then the secondgh release createfails because the release already exists, so its workflow run reports failure despite the release existing.Make release creation idempotent so a concurrent already-exists result is treated as success.
Prompt for AI agents