Skip to content

Commit 1f6aa6d

Browse files
committed
ci(release): create GitHub Release via gh CLI
Replace softprops/action-gh-release with the preinstalled GitHub CLI so org action allowlists that only permit GitHub-owned actions still pass.
1 parent d56774e commit 1f6aa6d

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ jobs:
6060
env:
6161
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6262

63-
- name: Upload release asset
64-
uses: softprops/action-gh-release@v2
65-
with:
66-
files: ${{ steps.pack.outputs.tarball }}
67-
generate_release_notes: true
63+
- name: Create GitHub Release (official gh CLI, no third-party action)
6864
env:
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
run: |
67+
set -euo pipefail
68+
gh release create "${GITHUB_REF_NAME}" "${{ steps.pack.outputs.tarball }}" \
69+
--verify-tag \
70+
--generate-notes

0 commit comments

Comments
 (0)