Skip to content

Commit c68f990

Browse files
authored
fix: trigger npm publish when release-please creates a release (#31)
GITHUB_TOKEN events don't trigger other workflows, so release:published never fired. Now release-please directly calls the publish workflow.
1 parent 3f7a61e commit c68f990

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
id-token: write
1112

1213
jobs:
1314
release-please:
@@ -20,3 +21,8 @@ jobs:
2021
id: release
2122
with:
2223
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
publish:
26+
needs: release-please
27+
if: ${{ needs.release-please.outputs.release_created == 'true' }}
28+
uses: ./.github/workflows/release.yml

0 commit comments

Comments
 (0)