Skip to content

Commit ca8c8ed

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

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

.github/workflows/release-hotfix.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
- uses: googleapis/release-please-action@v4
19+
with:
20+
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
21+
target-branch: ${{ github.ref_name }}
22+
config-file: release-please-config-hotfix.json
23+
manifest-file: .release-please-manifest-hotfix.json

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
on:
22
push:
3-
branches: [main]
3+
branches:
4+
- main
45

56
name: Release
67

@@ -15,7 +16,7 @@ jobs:
1516
node-version: 18
1617
- run: npm ci
1718
- run: npm test
18-
- uses: GoogleCloudPlatform/release-please-action@v3
19+
- uses: googleapis/release-please-action@v4
1920
with:
2021
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
2122
release-type: node

.release-please-manifest-hotfix.json

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

release-please-config-hotfix.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"release-type": "node",
6+
"versioning": "prerelease",
7+
"prerelease": true,
8+
"prerelease-type": "hotfix"
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)