File tree 2 files changed +44
-0
lines changed
2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : " Release version"
8
+ required : true
9
+ type : string
10
+
11
+ permissions :
12
+ contents : write
13
+
14
+ jobs :
15
+ release :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v3
19
+ with :
20
+ fetch-depth : 0
21
+
22
+ - name : Setup NodeJS
23
+ uses : actions/setup-node@v3
24
+
25
+ - name : Configure Git
26
+ run : |
27
+ git config --global user.name "github-actions[bot]"
28
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
29
+
30
+ - name : Generate Changelog and GH Release
31
+ run : |
32
+ npx changelogen@latest --release --push -r ${{ inputs.version }}
33
+ npx changelogen@latest gh release --token ${{ secrets.GITHUB_TOKEN }}
34
+
35
+ - name : Release VS Code Package
36
+ env :
37
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
38
+ run : |
39
+ npx @vscode/vsce@latest publish
Original file line number Diff line number Diff line change
1
+ {
2
+ "templates" : {
3
+ "commitMessage" : " release: `v{{newVersion}}`"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments