There was an error while loading. Please reload this page.
2 parents ad72e7d + 3532a7f commit 71de25cCopy full SHA for 71de25c
1 file changed
.github/workflows/release-please.yml
@@ -7,6 +7,7 @@ on:
7
permissions:
8
contents: write
9
pull-requests: write
10
+ actions: write
11
12
jobs:
13
release:
@@ -17,3 +18,13 @@ jobs:
17
18
with:
19
config-file: release-please-config.json
20
manifest-file: .release-please-manifest.json
21
+ - name: Dispatch npm publish for released packages
22
+ if: ${{ steps.release.outputs.releases_created == 'true' }}
23
+ env:
24
+ GH_TOKEN: ${{ github.token }}
25
+ RELEASE_OUTPUTS: ${{ toJSON(steps.release.outputs) }}
26
+ run: |
27
+ for tag in $(echo "$RELEASE_OUTPUTS" | jq -r 'to_entries[] | select(.key | endswith("--tag_name")) | .value'); do
28
+ echo "Dispatching publish-package.yml for $tag"
29
+ gh workflow run publish-package.yml --repo "$GITHUB_REPOSITORY" -f tag="$tag"
30
+ done
0 commit comments