Skip to content

Commit f775931

Browse files
ci: update release action
1 parent 949a518 commit f775931

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
on:
22
push:
3-
branches: [main]
3+
branches:
4+
- main
5+
- v[1-9]+.[0-9]+.[0-9]+-hotfix-[1-9]+ # match branches in format v6-20-10-hotfix-1
6+
- hotfix-test-[1-9]+
47

58
name: Release
69

@@ -15,7 +18,9 @@ jobs:
1518
node-version: 18
1619
- run: npm ci
1720
- run: npm test
18-
- uses: GoogleCloudPlatform/release-please-action@v3
21+
- uses: googleapis/release-please-action@v4
1922
with:
2023
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
2124
release-type: node
25+
target-branch: ${{ github.ref_name }}
26+
manifest-file: ${{ github.ref_name != 'main' && .release-please-manifest.json || .release-please-manifest-hotfix.json }}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"prerelease-type": "hotfix",
3+
"prerelease": true
4+
}

.release-please-manifest.json

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

0 commit comments

Comments
 (0)