Skip to content

Commit ebc7633

Browse files
committed
chore: update github workflow
1 parent 57147f4 commit ebc7633

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
needs: [run-js-tests]
3939
runs-on: ubuntu-latest
4040
if: (github.repository != 'Exabyte-io/template-definitions') && (github.ref_name == 'main')
41+
outputs:
42+
release-version: ${{ steps.publish.outputs.tag-name }}
4143

4244
steps:
4345
- name: Checkout this repository
@@ -51,9 +53,33 @@ jobs:
5153
path: actions
5254

5355
- name: Publish JS release
56+
id: publish
5457
uses: ./actions/js/publish
5558
with:
5659
node-version: 12.21.x
5760
npm-token: ${{ secrets.NPM_TOKEN }}
5861
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
5962

63+
create-pr-in-a-dependant:
64+
needs: [publish-js-package]
65+
runs-on: ubuntu-latest
66+
if: (github.repository != 'Exabyte-io/template-definitions') && (github.ref_name == 'main')
67+
68+
steps:
69+
- name: Checkout this repository
70+
uses: actions/checkout@v2
71+
72+
- name: Checkout actions repository
73+
uses: actions/checkout@v2
74+
with:
75+
repository: Exabyte-io/actions
76+
token: ${{ secrets.BOT_GITHUB_TOKEN }}
77+
path: actions
78+
79+
- name: Create a PR
80+
uses: ./actions/git/pull-request
81+
with:
82+
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}
83+
repository: Exabyte-io/ade.js
84+
source-package-name: @exabyte-io/code.js
85+
target-version: ${{ needs.publish-js-package.outputs.release-version }}

0 commit comments

Comments
 (0)