From cc1027ba63646b9f705e4e0089217b92bf7c07c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=D3=84=D5=A1?= Date: Sat, 30 Nov 2024 17:40:55 +0800 Subject: [PATCH] fix(workflows): release & pre-release flow (#4184) --- .github/workflows/pre-release.yaml | 1 - .github/workflows/release.yaml | 12 +++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 6c1850a12..4b1d57ff7 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -7,7 +7,6 @@ on: - "packages/**" branches: - "beta/release-next" - - "canary" concurrency: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ecf229dfb..e782f3c25 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -6,7 +6,7 @@ on: - ".changeset/**" - "packages/**" branches: - - main + - canary concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -39,4 +39,14 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Create canary release + if: steps.changesets.outputs.published != 'true' + run: | + git checkout canary + pnpm version:canary + pnpm release:canary + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file