File tree Expand file tree Collapse file tree 4 files changed +1489
-106
lines changed Expand file tree Collapse file tree 4 files changed +1489
-106
lines changed 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 13
13
"test:dev" : " vitest" ,
14
14
"g:tsc" : " cd $INIT_CWD && rimraf dist/ && tsc" ,
15
15
"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"
17
18
},
18
19
"license" : " MIT" ,
19
20
"workspaces" : [
22
23
" website"
23
24
],
24
25
"devDependencies" : {
26
+ "@changesets/cli" : " 2.25.2" ,
25
27
"@types/cross-spawn" : " 6.0.2" ,
26
28
"@types/node" : " 14.18.32" ,
27
29
"@types/rimraf" : " 3.0.2" ,
You can’t perform that action at this time.
0 commit comments