File tree Expand file tree Collapse file tree 4 files changed +41
-33
lines changed Expand file tree Collapse file tree 4 files changed +41
-33
lines changed Original file line number Diff line number Diff line change 1
- name : Github Release
1
+ name : Automatic Github release
2
2
3
3
on :
4
- workflow_dispatch :
5
- push :
6
- branches :
7
- - main
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - main
8
+ paths :
9
+ - VERSION
8
10
9
11
jobs :
10
- gh_release :
12
+ github :
11
13
permissions :
12
14
contents : write
13
- uses : ./ .github/workflows/lib-gh -release.yml
15
+ uses : Adyen/release-automation-action/ .github/workflows/reusable-github -release.yml@v1.1.1
14
16
with :
15
- project-name : Node
16
- secrets : inherit
17
+ release-title : Adyen Node API Library
18
+ develop-branch : main
19
+ secrets :
20
+ token : ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : Release request
1
+ name : Prepare release
2
2
3
3
on :
4
- workflow_dispatch :
5
- inputs :
6
- prerelease :
7
- required : false
8
- type : boolean
9
- default : false
10
- description : " This release will be labeled as non-production ready"
11
- push :
12
- branches :
13
- - develop
4
+ workflow_dispatch :
5
+ inputs :
6
+ pre-release :
7
+ required : false
8
+ type : boolean
9
+ default : false
10
+ description : " This release will be labeled as non-production ready"
11
+ pull_request :
12
+ types :
13
+ - closed
14
+ branches :
15
+ - main
14
16
15
17
jobs :
16
- release :
18
+ candidate :
19
+ if : github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
17
20
permissions :
18
21
contents : write
19
22
pull-requests : write
20
- uses : ./.github/workflows/lib-release.yml
21
- with :
22
- prerelease : ${{ inputs.prerelease || false }}
23
- secrets : inherit
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - name : Prepare the next main release
27
+ uses : Adyen/release-automation-action@v1.1.1
28
+ with :
29
+ token : ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
30
+ develop-branch : main
31
+ version-files : package.json
32
+ pre-release : ${{ inputs.pre-release || false }}
33
+ separator : .pre.beta
Original file line number Diff line number Diff line change @@ -112,11 +112,4 @@ clean:
112
112
git checkout src/typings src/services/management
113
113
git clean -f -d src/typings src/services/management
114
114
115
- # # Release
116
- version :
117
- echo currentVersion=$$(node -pe "require('./package.json' ) .version" ) >> " $$ GITHUB_OUTPUT"
118
-
119
- bump :
120
- npm --no-git-tag-version version " $$ NEXT_VERSION"
121
-
122
- .PHONY : templates models $(services ) version bump
115
+ .PHONY : templates models $(services )
Original file line number Diff line number Diff line change
1
+ 15.0.0
You can’t perform that action at this time.
0 commit comments