Skip to content

Commit d79b96e

Browse files
committed
Move to Adyen/release-automation-action
1 parent a69db68 commit d79b96e

File tree

4 files changed

+41
-33
lines changed

4 files changed

+41
-33
lines changed

.github/workflows/gh-release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
name: Github Release
1+
name: Automatic Github release
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- VERSION
810

911
jobs:
10-
gh_release:
12+
github:
1113
permissions:
1214
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
1416
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 }}

.github/workflows/release.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
name: Release request
1+
name: Prepare release
22

33
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
1416

1517
jobs:
16-
release:
18+
candidate:
19+
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
1720
permissions:
1821
contents: write
1922
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

Makefile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,4 @@ clean:
112112
git checkout src/typings src/services/management
113113
git clean -f -d src/typings src/services/management
114114

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)

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15.0.0

0 commit comments

Comments
 (0)