-
Notifications
You must be signed in to change notification settings - Fork 61
124 lines (106 loc) · 4.21 KB
/
aa-bundler-sdk-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: Bump of AA-Bundler for NPM
on:
push:
branches:
- develop
paths:
# only on change
- 'packages/boba/bundler_sdk/**/*'
- 'packages/boba/bundler_utils/**/*'
- 'packages/boba/account-abstraction/**/*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
bundler_sdk:
- 'packages/boba/account-abstraction/**/*'
- 'packages/boba/bundler_sdk/**/*'
- 'packages/boba/bundler_utils/**/*'
- uses: MontyD/[email protected]
id: version-updated-aa
with:
path: packages/boba/account-abstraction/package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: MontyD/[email protected]
id: version-updated-utils
with:
path: packages/boba/bundler_utils/package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: MontyD/[email protected]
id: version-updated
with:
path: packages/boba/bundler_sdk/package.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: get-latest-tag-aa
working-directory: ./packages/boba/account-abstraction
run: echo "aa_current_version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
- id: get-latest-tag-utils
working-directory: ./packages/boba/bundler_utils
run: echo "utils_current_version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
- id: get-latest-tag
working-directory: ./packages/boba/bundler_sdk
run: echo "sdk_current_version=$(cat package.json | jq -r '.version')" >> $GITHUB_OUTPUT
- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver-aa
with:
current_version: ${{ steps.get-latest-tag-aa.outputs.aa_current_version }}
level: patch
- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver-utils
with:
current_version: ${{ steps.get-latest-tag-utils.outputs.utils_current_version }}
level: patch
- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.sdk_current_version }}
level: patch
- name: Increment patch version - AA
if: steps.version-updated-aa.outputs.has-updated == 'true'
working-directory: ./packages/boba/account-abstraction
run: yarn version patch --no-commit-hooks --no-git-tag-version --new-version ${{ steps.bump-semver-aa.outputs.new_version }}
- name: Increment patch version - BundlerUtils
if: steps.version-updated-utils.outputs.has-updated == 'true'
working-directory: ./packages/boba/bundler_utils
run: yarn version patch --no-commit-hooks --no-git-tag-version --new-version ${{ steps.bump-semver-utils.outputs.new_version }}
- name: Increment patch version - BundlerSDK
if: steps.version-updated.outputs.has-updated == 'true'
working-directory: ./packages/boba/bundler_sdk
run: yarn version patch --no-commit-hooks --no-git-tag-version --new-version ${{ steps.bump-semver.outputs.new_version }}
- name: Create Pull Request
if: steps.version-updated.outputs.has-updated == 'true'
id: cpr
uses: peter-evans/create-pull-request@v5
with:
base: develop
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
commit-message: Update NPM versions
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: automated/bump_bundler_sdk_version
delete-branch: true
title: 'Bump Bundler SDK version'
body: |
Bump Bundler SDK version
labels: |
automated pr
bundler
bundler sdk
account-abstraction
reviewers: |
souradeep-das
wsdt
Boyuan-Chen
inomurko
draft: false