File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed
Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Release to NPM Canary
2+
3+ on : workflow_dispatch
4+
5+ concurrency : ${{ github.workflow }}-${{ github.ref }}
6+
7+ jobs :
8+ release :
9+ name : Release
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
14+ with :
15+ node-version : 20
16+ - uses : pnpm/action-setup@v4
17+ with :
18+ version : 9
19+
20+ - name : Install dependencies
21+ run : pnpm build:prepare
22+ - name : Build
23+ run : pnpm build
24+
25+ - name : Publish to npm Canary
26+ run : pnpm run version && pnpm changeset publish --tag canary
27+ env :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 3636 title : " chore: bump packages version"
3737 commit : " chore: bump packages version"
3838 version : pnpm run version
39- # This expects you to have a script called release which does a build for your packages and calls changeset publish
40- publish : pnpm run publish
39+ publish : pnpm changeset publish
4140 env :
4241 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4342 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments