Skip to content

Commit c90db1d

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

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

.github/workflows/release-hotfix.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

.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.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "6.31.0"
3+
}

release-please-config-hotfix.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"bootstrap-sha": "a3a39782af968677866b86dc590d4150d4af4211",
4+
"pull-request-title-pattern": "chore(${branch}): release ${version}",
5+
"skip-github-release": true,
6+
"packages": {
7+
".": {
8+
"release-type": "node",
9+
"versioning": "prerelease",
10+
"prerelease": true,
11+
"prerelease-type": "hotfix"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)