From ae2f01b2b4258a99bbe4701effb24d2b8e629850 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 | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 5 +++-- .release-please-manifest.json | 3 +++ release-please-config-hotfix.json | 13 +++++++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release-hotfix.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config-hotfix.json diff --git a/.github/workflows/release-hotfix.yml b/.github/workflows/release-hotfix.yml new file mode 100644 index 000000000..9d5eed836 --- /dev/null +++ b/.github/workflows/release-hotfix.yml @@ -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 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.json b/.release-please-manifest.json new file mode 100644 index 000000000..33f972fb7 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "6.31.0" +} diff --git a/release-please-config-hotfix.json b/release-please-config-hotfix.json new file mode 100644 index 000000000..bd106cb55 --- /dev/null +++ b/release-please-config-hotfix.json @@ -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", + "release-as": "6.31.1-hotfix-1" + } + } +}