File tree 4 files changed +1877
-6
lines changed
4 files changed +1877
-6
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
+ - next
8
+
9
+ permissions :
10
+ contents : write
11
+ issues : write
12
+ pull-requests : write
13
+
14
+ jobs :
15
+ release :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-node@v4
20
+ with :
21
+ node-version : 20
22
+ - uses : pnpm/action-setup@v4
23
+ with :
24
+ version : latest
25
+ - run : pnpm install --frozen-lockfile
26
+ - run : pnpm run build
27
+
28
+ - name : Release
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
32
+ run : npm run semantic-release
Original file line number Diff line number Diff line change 28
28
"prebuild" : " npm run clean" ,
29
29
"build" : " tsup" ,
30
30
"preversion" : " npm run build" ,
31
- "postversion" : " git push --tags"
31
+ "postversion" : " git push --tags" ,
32
+ "semantic-release" : " semantic-release"
32
33
},
33
34
"author" : " Riki Phukon" ,
34
35
"license" : " MIT" ,
44
45
"@types/debug" : " ^4.1.12" ,
45
46
"@types/node" : " ^20.11.30" ,
46
47
"rimraf" : " ^5.0.5" ,
48
+ "semantic-release" : " ^24.2.1" ,
47
49
"tsup" : " ^8.0.2" ,
48
50
"typescript" : " ^5.4.3"
49
51
}
You can’t perform that action at this time.
0 commit comments