From 32d928614c5ea2f4b331c0bbdcd50b944fe5c2bc 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 | 24 ++++++++++++++++++++++++ .github/workflows/release.yml | 5 +++-- .release-please-config-hotfix.json | 8 ++++++++ .release-please-manifest-hotfix.json | 1 + 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-hotfix.yml create mode 100644 .release-please-config-hotfix.json 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..a370fdbd8 --- /dev/null +++ b/.github/workflows/release-hotfix.yml @@ -0,0 +1,24 @@ +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 }} + config-file: .release-please-config-hotfix.json + 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-config-hotfix.json b/.release-please-config-hotfix.json new file mode 100644 index 000000000..ff4e52c1a --- /dev/null +++ b/.release-please-config-hotfix.json @@ -0,0 +1,8 @@ +{ + "prerelease-type": "hotfix", + "versioning": "prerelease", + "prerelease": true, + "packages": { + ".": {} + } +} diff --git a/.release-please-manifest-hotfix.json b/.release-please-manifest-hotfix.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/.release-please-manifest-hotfix.json @@ -0,0 +1 @@ +{}