Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
permissions:
contents: read
id-token: write # Required for NPM provenance if you use it

steps:
- uses: actions/checkout@v4
Expand All @@ -26,9 +25,22 @@ jobs:
with:
skip-browsers: 'true'

- name: Check for Changesets
id: check_changesets
run: |
# Run changeset status. If it succeeds (exit 0), we have changesets.
# If it fails (exit 1), we don't.
if pnpm changeset status; then
echo "has_changesets=true" >> $GITHUB_OUTPUT
echo "✅ Changesets found. Proceeding..."
else
echo "has_changesets=false" >> $GITHUB_OUTPUT
echo "⏭️ No changesets found. Skipping canary release."
fi

- name: Publish Canary
if: steps.check_changesets.outputs.has_changesets == 'true'
run: pnpm release-packages:canary
env:
# You need this token to publish to NPM
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Updates package.json versions based on intent
version: pnpm version-packages
# Publishes to NPM and creates the GitHub Release
publish: pnpm release
publish: pnpm release-packages
commit: 'chore: version packages'
title: 'chore: version packages'
env:
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ packages/landingpage/public/site.webmanifest
**/playwright-report

assets/
.changeset
.github
Loading