-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add a canary release workflow
- Loading branch information
1 parent
31aead1
commit d4741c7
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: "canary" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- ".changeset/**/*.md" | ||
|
||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
# Used to fetch all history so that changesets doesn't attempt to | ||
# publish duplicate tags. | ||
fetch-depth: 0 | ||
# Replaces `concurrency` - never cancels any jobs | ||
- uses: softprops/turnstyle@v1 | ||
with: | ||
poll-interval-seconds: 30 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
- run: pnpm install | ||
- uses: "the-guild-org/[email protected]" | ||
with: | ||
tag: "alpha" | ||
prepareScript: "pnpm run build" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_ENV: test # disable npm access checks; they don't work in CI |