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 dbbd8ff
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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
- run: npm ci
- run: npm test
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
release-type: node
target-branch: ${{ github.ref_name }}
manifest-file: .release-please-manifest-hotfix.json
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
push:
branches: [main]
branches:
- main
- 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

Expand All @@ -15,7 +18,9 @@ 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
target-branch: ${{ github.ref_name }}
manifest-file: ${{ github.ref_name != 'main' && ".release-please-manifest-hotfix.json" || ".release-please-manifest.json" }}
4 changes: 4 additions & 0 deletions .release-please-manifest-hotfix.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prerelease-type": "hotfix",
"prerelease": true
}

0 comments on commit dbbd8ff

Please sign in to comment.