Skip to content

Commit 0729f70

Browse files
committed
Add descriptive title to release
1 parent 274781e commit 0729f70

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/tmbundle.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
push:
55
paths:
66
- 'plush.tmbundle/**'
7-
- '.github/workflows/tmbundle.yml' # Trigger on changes to this workflow file
8-
workflow_dispatch:
7+
- '.github/workflows/tmbundle.yml'
98

109
jobs:
1110
build:
@@ -25,6 +24,16 @@ jobs:
2524
- name: Install vsce
2625
run: npm install -g @vscode/vsce
2726

27+
- name: Bump Version
28+
run: |
29+
cd plush.tmbundle
30+
npm version patch --no-git-tag-version
31+
git add package.json package-lock.json
32+
git commit -m "Bump version to $(jq -r '.version' package.json)"
33+
git push
34+
env:
35+
GH_TOKEN: ${{ github.token }}
36+
2837
- name: Package .vsix
2938
run: cd plush.tmbundle && vsce package
3039

@@ -45,6 +54,8 @@ jobs:
4554
GH_TOKEN: ${{ github.token }}
4655

4756
- name: Create Release
48-
run: gh release create ${{ env.TAG }} 'plush.tmbundle/*.vsix' --generate-notes
57+
run: |
58+
VERSION=$(jq -r '.version' plush.tmbundle/package.json)
59+
gh release create ${{ env.TAG }} 'plush.tmbundle/*.vsix' --title "Plush VSCode Extension $VERSION" --generate-notes
4960
env:
50-
GH_TOKEN: ${{ github.token }}
61+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)