Skip to content

Commit fce4d60

Browse files
authored
ci: update global workflows
1 parent 1bc6efd commit fce4d60

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/bump.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#This action is centrally managed in https://github.com/asyncapi/.github/
2+
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
3+
4+
#Purpose of this action is to update npm package in libraries that use it. It is like dependabot for asyncapi npm modules only.
5+
#It runs in a repo after merge of release commit and searches for other packages that use released package. Every found package gets updated with lates version
6+
7+
name: Bump package version in dependent repos - if Node project
8+
9+
on:
10+
#It cannot run on release event as when release is created then version is not yet bumped in package.json
11+
#This means we cannot extract easily latest version and have a risk that package is not yet on npm
12+
push:
13+
branches:
14+
- master
15+
16+
jobs:
17+
bump:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout repo
21+
uses: actions/checkout@v2
22+
- name: Check if Node.js project and has package.json
23+
id: packagejson
24+
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
25+
- if: steps.packagejson.outputs.exists == 'true' && startsWith(github.event.commits[0].message, 'chore(release):')
26+
name: Bumping latest version of this package in other repositories
27+
uses: derberg/custom-dependabot-for-your-github-org@v2
28+
with:
29+
github_token: ${{ secrets.GH_TOKEN }}
30+
committer_username: asyncapi-bot
31+
committer_email: [email protected]
32+
repos_to_ignore: html-template #this is temporary until react component releases 1.0, then it can be removed

0 commit comments

Comments
 (0)