Skip to content

Commit 8ef4e1e

Browse files
committed
fix: update GitHub release action and add setup instructions
- Update to softprops/action-gh-release@v2 - Add explicit token parameter - Add comment with repository settings instructions To resolve 422 error, repository admin needs to: 1. Go to Settings → Actions → General 2. Under 'Workflow permissions', select 'Read and write permissions' 3. Check 'Allow GitHub Actions to create and approve pull requests'
1 parent 1462c80 commit 8ef4e1e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@ jobs:
9696
9797
- name: Create GitHub Release
9898
if: startsWith(github.ref, 'refs/tags/')
99-
uses: softprops/action-gh-release@v1
99+
uses: softprops/action-gh-release@v2
100100
with:
101101
files: ./artifacts/*.nupkg
102102
generate_release_notes: true
103-
env:
104-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
fail_on_unmatched_files: false
104+
token: ${{ secrets.GITHUB_TOKEN }}
105+
# Note: If this fails with 422 error, go to:
106+
# Settings → Actions → General → Workflow permissions
107+
# Select "Read and write permissions"

0 commit comments

Comments
 (0)