Skip to content

Commit c326a6c

Browse files
committed
Update the release with assets after publishing
1 parent 2041c95 commit c326a6c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish package
22

33
on:
44
release:
5-
types: [published]
5+
types: [created]
66

77
jobs:
88
publish:
@@ -24,3 +24,13 @@ jobs:
2424
run: npm publish --provenance --access public
2525
env:
2626
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
28+
- name: Update Release
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
OWNER: ${{ github.repository_owner }}
32+
REPO: ${{ github.event.repository.name }}
33+
ACTION: ${{ github.event.release.tag_name }}
34+
run: |
35+
gh release upload $ACTION *.tgz
36+
gh release edit $ACTION --draft=false

0 commit comments

Comments
 (0)