From b40a4a7383aa043346435ee96f54885961dc72c0 Mon Sep 17 00:00:00 2001 From: mufazalov Date: Thu, 7 Nov 2024 14:03:55 +0300 Subject: [PATCH] ci: update release action --- .github/workflows/release-hotfix.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 5 +++-- .release-please-manifest-hotfix.json | 5 +++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-hotfix.yml create mode 100644 .release-please-manifest-hotfix.json diff --git a/.github/workflows/release-hotfix.yml b/.github/workflows/release-hotfix.yml new file mode 100644 index 000000000..97afbb9fe --- /dev/null +++ b/.github/workflows/release-hotfix.yml @@ -0,0 +1,23 @@ +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 }} + release-type: node + target-branch: ${{ github.ref_name }} + manifest-file: .release-please-manifest-hotfix.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8f739d9d7..562e90ecd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ on: push: - branches: [main] + branches: + - main name: Release @@ -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 diff --git a/.release-please-manifest-hotfix.json b/.release-please-manifest-hotfix.json new file mode 100644 index 000000000..b49b2f48e --- /dev/null +++ b/.release-please-manifest-hotfix.json @@ -0,0 +1,5 @@ +{ + "versioning-strategy": "prerelease", + "prerelease-type": "hotfix", + "prerelease": true +}