File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release Canary
2+
3+ on :
4+ issue_comment :
5+ types : [created]
6+
7+ jobs :
8+ release :
9+ if : ${{ github.event.issue.pull_request && contains(github.event.comment.body, '!canary') }}
10+ permissions :
11+ contents : write # to create release (changesets/action)
12+ id-token : write # Required for provenance
13+ issues : write # To create a comment
14+ name : Release
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout Repo
18+ uses : actions/checkout@v4
19+
20+ - name : Setup Node.js 20
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : 20
24+
25+ - name : Install Dependencies
26+ run : yarn
27+
28+ - name : Release
29+ run : |
30+ yarn changeset version --snapshot canary
31+ yarn changeset publish --tag canary --no-git-tag --snapshot
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ NPM_CONFIG_PROVENANCE : true
35+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
36+
37+ - name : Write a new comment
38+ uses : peter-evans/create-or-update-comment@v4
39+ continue-on-error : true
40+ with :
41+ issue-number : ${{ github.event.issue.number }}
42+ body : |
43+ 🎉 A new canary release has been published! 🎉
You can’t perform that action at this time.
0 commit comments