fix(workflows): release & pre-release flow (#4184)

This commit is contained in:
աӄա 2024-11-30 17:40:55 +08:00 committed by GitHub
parent 96cc97ac82
commit cc1027ba63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View File

@ -7,7 +7,6 @@ on:
- "packages/**"
branches:
- "beta/release-next"
- "canary"
concurrency: ${{ github.workflow }}-${{ github.ref }}

View File

@ -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 }}