Skip to content

Commit

Permalink
ci: update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
artemmufazalov committed Nov 7, 2024
1 parent 949a518 commit c81ea40
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- v[1-9]+.[0-9]+.[0-9]+-hotfix-[1-9]+ # match branches in format v6-20-10-hotfix-1
- hotfix-test-[1-9]+

name: Release

jobs:
release:
if: github.repository == 'ydb-platform/ydb-embedded-ui'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
target-branch: ${{ github.ref_name }}
config-file: release-please-config-hotfix.json
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
on:
push:
branches: [main]
branches:
- main

name: Release

Expand All @@ -15,7 +16,7 @@ jobs:
node-version: 18
- run: npm ci
- run: npm test
- uses: GoogleCloudPlatform/release-please-action@v3
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
release-type: node
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "6.31.0"
}
13 changes: 13 additions & 0 deletions release-please-config-hotfix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bootstrap-sha": "a3a39782af968677866b86dc590d4150d4af4211",
"packages": {
".": {
"release-type": "node",
"versioning": "prerelease",
"prerelease": true,
"prerelease-type": "hotfix",
"skip-github-release": true
}
}
}

0 comments on commit c81ea40

Please sign in to comment.