Skip to content

Commit 808fcb3

Browse files
chore: add canary release support for testing
1 parent 0f09941 commit 808fcb3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- test-canary-release # Test branch for canary releases
78

89
concurrency: ${{ github.workflow }}-${{ github.ref }}
910

@@ -39,7 +40,7 @@ jobs:
3940
id: changesets
4041
uses: changesets/action@v1
4142
with:
42-
publish: pnpm release
43+
publish: ${{ github.ref == 'refs/heads/master' && 'pnpm release' || 'pnpm release:canary' }}
4344
commit: "chore(release): version packages"
4445
title: "chore(release): version packages"
4546
env:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"lint:check": "pnpm -r run lint:check",
1515
"format": "prettier --write .",
1616
"format:check": "prettier --check .",
17-
"release": "pnpm build && changeset publish"
17+
"release": "pnpm build && changeset publish",
18+
"release:canary": "pnpm build && changeset publish --tag canary"
1819
},
1920
"repository": {
2021
"type": "git",

0 commit comments

Comments
 (0)