Skip to content

Commit 466daf6

Browse files
committed
ci: improve canary release tags
1 parent 0f09209 commit 466daf6

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

.changeset/config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"linked": [],
77
"access": "public",
88
"baseBranch": "master",
9+
"snapshot": {
10+
"useCalculatedVersion": true,
11+
"prereleaseTemplate": "{tag}-{commit}"
12+
},
913
"ignore": []
1014
}

.github/workflows/release-canary.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- master
7+
# Only run if a changeset file is added/modified
8+
paths:
9+
- '.changeset/*.md'
10+
- '!.changeset/README.md' # Ignore the readme
711

812
concurrency: ${{ github.workflow }}-${{ github.ref }}
913

@@ -25,21 +29,7 @@ jobs:
2529
with:
2630
skip-browsers: 'true'
2731

28-
- name: Check for Changesets
29-
id: check_changesets
30-
# Run changeset status. If it succeeds (exit 0), we have changesets.
31-
# If it fails (exit 1), we don't.
32-
run: |
33-
if pnpm changeset status; then
34-
echo "has_changesets=true" >> $GITHUB_OUTPUT
35-
echo "✅ Changesets found. Proceeding..."
36-
else
37-
echo "has_changesets=false" >> $GITHUB_OUTPUT
38-
echo "⏭️ No changesets found. Skipping canary release."
39-
fi
40-
4132
- name: Publish Canary
42-
if: steps.check_changesets.outputs.has_changesets == 'true'
4333
run: pnpm release-packages:canary
4434
env:
4535
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ jobs:
2525
with:
2626
skip-browsers: 'true'
2727

28-
- name: Build Packages
29-
run: pnpm build
30-
3128
- name: Create Release Pull Request or Publish
3229
uses: changesets/action@v1
3330
with:

0 commit comments

Comments
 (0)