Skip to content

Commit a1eab87

Browse files
authored
Merge pull request #3746 from hey-api/ci/fix-changesets-publish-notes
ci: gate release notes on changesets publish
2 parents 2d92235 + c228824 commit a1eab87

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
private-key: ${{ secrets.GIT_APP_PRIVATE_KEY }}
4747

4848
- name: Create Release Pull Request
49+
id: changesets
4950
uses: changesets/[email protected]
5051
with:
5152
commit: 'ci: release'
@@ -58,16 +59,19 @@ jobs:
5859
NPM_CONFIG_PROVENANCE: true
5960

6061
- name: Generate Release Tag
62+
if: steps.changesets.outputs.published == 'true'
6163
id: tag
6264
run: echo "tag=$(pnpm -s changelog:release:tag)" >> $GITHUB_OUTPUT
6365

6466
- name: Generate Release Notes
67+
if: steps.changesets.outputs.published == 'true'
6568
id: notes
6669
run: pnpm -s changelog:release:notes > release-notes.md
6770
env:
6871
GH_TOKEN: ${{ steps.app-token.outputs.token }}
6972

7073
- name: Create GitHub Release
74+
if: steps.changesets.outputs.published == 'true'
7175
uses: softprops/[email protected]
7276
with:
7377
body_path: release-notes.md

0 commit comments

Comments
 (0)