Skip to content

Commit 2d37d61

Browse files
committed
ci: ensure prerelease is true and set strategy for action
Without prerelease set to true, we won't create releases as pre-releases in GitHub if and only if it is actually a pre-release. It won't for normal releases.
1 parent ac17323 commit 2d37d61

File tree

5 files changed

+7
-15
lines changed

5 files changed

+7
-15
lines changed

.github/release-please/release-please-config-alpha.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
],
88
"packages": {
99
".": {
10-
"bump-minor-pre-major": false,
11-
"bump-patch-for-minor-pre-major": false,
1210
"prerelease": true,
13-
"prerelease-type": "alpha",
14-
"versioning": "prerelease"
11+
"prerelease-type": "alpha"
1512
}
1613
},
1714
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

.github/release-please/release-please-config-beta.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
],
88
"packages": {
99
".": {
10-
"bump-minor-pre-major": false,
11-
"bump-patch-for-minor-pre-major": false,
1210
"prerelease": true,
13-
"prerelease-type": "beta",
14-
"versioning": "prerelease"
11+
"prerelease-type": "beta"
1512
}
1613
},
1714
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

.github/release-please/release-please-config-rc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77
],
88
"packages": {
99
".": {
10-
"bump-minor-pre-major": false,
11-
"bump-patch-for-minor-pre-major": false,
1210
"prerelease": true,
13-
"prerelease-type": "rc",
14-
"versioning": "prerelease"
11+
"prerelease-type": "rc"
1512
}
1613
},
1714
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

.github/workflows/release-please-prerelease.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
token: ${{ secrets.VATSCA_BOT_TOKEN }}
3535
target-branch: ${{ github.event.inputs.target_branch }}
3636
config-file: .github/release-please/release-please-config-alpha.json
37+
versioning-strategy: prerelease
3738

3839
- name: Run release-please (beta)
3940
if: ${{ github.event.inputs.prerelease_type == 'beta' }}
@@ -42,6 +43,7 @@ jobs:
4243
token: ${{ secrets.VATSCA_BOT_TOKEN }}
4344
target-branch: ${{ github.event.inputs.target_branch }}
4445
config-file: .github/release-please/release-please-config-beta.json
46+
versioning-strategy: prerelease
4547

4648
- name: Run release-please (rc)
4749
if: ${{ github.event.inputs.prerelease_type == 'rc' }}
@@ -50,3 +52,4 @@ jobs:
5052
token: ${{ secrets.VATSCA_BOT_TOKEN }}
5153
target-branch: ${{ github.event.inputs.target_branch }}
5254
config-file: .github/release-please/release-please-config-rc.json
55+
versioning-strategy: prerelease

release-please-config.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
],
88
"packages": {
99
".": {
10-
"bump-minor-pre-major": false,
11-
"bump-patch-for-minor-pre-major": false,
12-
"prerelease": false
10+
"prerelease": true
1311
}
1412
},
1513
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"

0 commit comments

Comments
 (0)