From 78d67734dd9f0c815c4920984bf3a9ea2c2f98e5 Mon Sep 17 00:00:00 2001 From: ma-efremoff <64027148+ma-efremoff@users.noreply.github.com> Date: Tue, 12 Mar 2024 14:27:08 +0300 Subject: [PATCH] chore(release.yaml): add branch pattern 'release/v*' (#1420) --- .github/workflows/release.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f7830c19f1..762e18dd5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,14 +2,19 @@ name: Release on: push: - branches: [main] + branches: + - main + - release/v* jobs: release: runs-on: ubuntu-latest steps: - - uses: gravity-ui/release-action@v1 - with: - github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} - npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }} - node-version: 18 + - name: Release from ${{ github.ref_name }} + uses: gravity-ui/release-action@v1 + with: + github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} + npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }} + node-version: 18 + default-branch: ${{ github.ref_name != 'main' && github.ref_name || null }} + npm-dist-tag: ${{ github.ref_name != 'main' && 'untagged' || 'latest' }} \ No newline at end of file