Skip to content

Commit 238e5ad

Browse files
ci: update release action, allow hotfix branches (#1596)
1 parent 88ec214 commit 238e5ad

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/release.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
on:
22
push:
3-
branches: [main]
3+
branches:
4+
- main
5+
- hotfix/v[0-9]+.[0-9]+.[0-9]+ # match branches in format hotfix/v6.20.10
46

57
name: Release
68

@@ -15,7 +17,7 @@ jobs:
1517
node-version: 18
1618
- run: npm ci
1719
- run: npm test
18-
- uses: GoogleCloudPlatform/release-please-action@v3
20+
- uses: googleapis/release-please-action@v4
1921
with:
2022
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
21-
release-type: node
23+
target-branch: ${{ github.ref_name }}

.release-please-manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "6.31.0"
3+
}

release-please-config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"bootstrap-sha": "a3a39782af968677866b86dc590d4150d4af4211",
4+
"release-type": "node",
5+
"include-component-in-tag": false,
6+
"pull-request-title-pattern": "chore(${branch}): release ${version}",
7+
"packages": {
8+
".": {}
9+
}
10+
}

0 commit comments

Comments
 (0)