File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ env :
11+ NODE_VERSION : 18
12+
13+ jobs :
14+ release :
15+ name : Release
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@v3
20+
21+ - name : Setup Node.js
22+ uses : actions/setup-node@v3
23+ with :
24+ node-version : ${{ env.NODE_VERSION }}
25+ cache : ' yarn'
26+
27+ - name : Install dependencies
28+ run : yarn install --immutable
29+
30+ - name : Run Changesets
31+ id : changesets
32+ uses : changesets/action@v1
33+ with :
34+ publish : yarn release
35+ title : Packages ready to publish
36+ commit : Publish new versions
37+ env :
38+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39+ NPM_TOKEN : ${{secrets.NPM_TOKEN}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1313 "test:dev" : " vitest" ,
1414 "g:tsc" : " cd $INIT_CWD && rimraf dist/ && tsc" ,
1515 "website:build" : " yarn workspace website run build" ,
16- "website:start" : " yarn workspace website run start"
16+ "website:start" : " yarn workspace website run start" ,
17+ "release" : " yarn build && changeset publish"
1718 },
1819 "license" : " MIT" ,
1920 "workspaces" : [
2223 " website"
2324 ],
2425 "devDependencies" : {
26+ "@changesets/cli" : " 2.25.2" ,
2527 "@types/cross-spawn" : " 6.0.2" ,
2628 "@types/node" : " 14.18.32" ,
2729 "@types/rimraf" : " 3.0.2" ,
You can’t perform that action at this time.
0 commit comments