chore(release): v1.0.0-next.53 (#762) #115
This file contains 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: Bump package version in dependent repos | |
on: | |
#It cannot run on release event as when release is created then version is not yet bumped in package.json | |
#This means we cannot extract easily latest version and have a risk that package is not yet on npm | |
push: | |
branches: | |
- next | |
jobs: | |
bump-in-dependent-projects: | |
name: Bump this package in repositories that depend on it | |
if: startsWith(github.event.commits[0].message, 'chore(release):') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Check if Node.js project and has package.json | |
id: packagejson | |
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false" | |
- if: steps.packagejson.outputs.exists == 'true' | |
name: Bumping latest version of this package in other repositories | |
uses: derberg/npm-dependency-manager-for-your-github-org@v4 | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
committer_username: asyncapi-bot | |
committer_email: [email protected] | |
packagejson_path: ./library |