Merge pull request #430 from convertcom/chore/demo-advisories #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Please PR | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| actions: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@v4 | |
| id: release | |
| with: | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| - name: Dispatch npm publish for released packages | |
| if: ${{ steps.release.outputs.releases_created == 'true' }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| RELEASE_OUTPUTS: ${{ toJSON(steps.release.outputs) }} | |
| run: | | |
| for tag in $(echo "$RELEASE_OUTPUTS" | jq -r 'to_entries[] | select(.key | endswith("--tag_name")) | .value'); do | |
| echo "Dispatching publish-package.yml for $tag" | |
| gh workflow run publish-package.yml --repo "$GITHUB_REPOSITORY" -f tag="$tag" | |
| done |