Skip to content

Commit dbbd8ff

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

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
branches:
4+
- v[1-9]+.[0-9]+.[0-9]+-hotfix-[1-9]+ # match branches in format v6-20-10-hotfix-1
5+
- hotfix-test-[1-9]+
6+
7+
name: Release
8+
9+
jobs:
10+
release:
11+
if: github.repository == 'ydb-platform/ydb-embedded-ui'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 18
18+
- run: npm ci
19+
- run: npm test
20+
- uses: googleapis/release-please-action@v4
21+
with:
22+
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
23+
release-type: node
24+
target-branch: ${{ github.ref_name }}
25+
manifest-file: .release-please-manifest-hotfix.json

.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-hotfix.json" || ".release-please-manifest.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+
}

0 commit comments

Comments
 (0)