File tree 3 files changed +157
-20
lines changed
3 files changed +157
-20
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v2
18
+ with :
19
+ node-version : ' 14'
20
+
21
+ - name : Install dependencies
22
+ run : npm install
23
+
24
+ - name : Compile TypeScript
25
+ run : npx tsc
26
+
27
+ - name : Bundle with ncc
28
+ run : npx ncc build lib/index.js -o dist
29
+
30
+ - name : Create release
31
+ id : create_release
32
+ uses : actions/create-release@v1
33
+ env :
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ with :
36
+ tag_name : ${{ github.ref }}
37
+ release_name : Release ${{ github.ref }}
38
+ draft : false
39
+ prerelease : false
40
+
41
+ - name : Upload release asset
42
+ uses : actions/upload-release-asset@v1
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ with :
46
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
47
+ asset_path : ./dist/index.js
48
+ asset_name : index.js
49
+ asset_content_type : application/javascript
50
+
Original file line number Diff line number Diff line change 12
12
"dependencies" : {
13
13
"@actions/core" : " ^1.11.1" ,
14
14
"@actions/github" : " ^6.0.0" ,
15
- "axios" : " ^1.7.7"
15
+ "axios" : " ^1.7.7" ,
16
+ "ncc" : " ^0.3.6"
16
17
},
17
18
"devDependencies" : {
18
19
"@types/jest" : " ^29.5.14" ,
You can’t perform that action at this time.
0 commit comments