diff --git a/.github/workflows/release-hotfix.yml b/.github/workflows/release-hotfix.yml new file mode 100644 index 000000000..0bf14bc11 --- /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 }} + 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-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 @@ +{} diff --git a/release-please-config-hotfix.json b/release-please-config-hotfix.json new file mode 100644 index 000000000..1099f862a --- /dev/null +++ b/release-please-config-hotfix.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "release-type": "node", + "versioning": "prerelease", + "prerelease": true, + "prerelease-type": "hotfix" + } + } +}