Skip to content

Commit c4ef2e6

Browse files
committed
chore: Update GitHub Actions for release management
- Added permissions for writing contents and packages. - Switched to softprops/action-gh-release for updating releases. - Enhanced release body to include a link to the full changelog.
1 parent f936dd8 commit c4ef2e6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: write
9+
packages: write
10+
711
jobs:
812
verify:
913
runs-on: ubuntu-latest
@@ -114,12 +118,17 @@ jobs:
114118
myToken: ${{ secrets.GITHUB_TOKEN }}
115119

116120
- name: Update release with changelog
117-
uses: tubone24/[email protected]
121+
uses: softprops/action-gh-release@v2
118122
env:
119123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120124
with:
121-
release_name: ${{ github.event.release.tag_name }}
122-
body: ${{ steps.changelog.outputs.changelog }}
125+
tag_name: ${{ github.event.release.tag_name }}
126+
body: |
127+
${{ steps.changelog.outputs.changelog }}
128+
129+
**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.event.release.tag_name }}...HEAD
130+
draft: false
131+
prerelease: false
123132

124133
- name: Publish to NPM
125134
run: pnpm publish --no-git-checks

0 commit comments

Comments
 (0)