Skip to content

Commit bfb809f

Browse files
committed
Try to fix VSIX extension workflow
1 parent 7831069 commit bfb809f

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/tmbundle.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: write
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: Set up Node.js
2020
uses: actions/setup-node@v5
@@ -31,9 +31,21 @@ jobs:
3131
echo "Error: package.json not found in plush.tmbundle"
3232
exit 1
3333
fi
34+
35+
# Get new version number
36+
OLD_VERSION=$(jq -r '.version' package.json)
37+
echo "Current version: $OLD_VERSION"
38+
39+
# Update package version number
3440
npm version patch --no-git-tag-version
41+
42+
# Get new version number
3543
NEW_VERSION=$(jq -r '.version' package.json)
3644
echo "New version: $NEW_VERSION"
45+
46+
# Create a commit that updates the version number
47+
git config --global user.name "VSIX extension update workflow"
48+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3749
git add package.json
3850
if [ -f package-lock.json ]; then
3951
git add package-lock.json
@@ -43,7 +55,7 @@ jobs:
4355
env:
4456
GH_TOKEN: ${{ github.token }}
4557

46-
- name: Package .vsix
58+
- name: Build .vsix package
4759
run: cd plush.tmbundle && vsce package
4860

4961
- name: Extract version and set tag

0 commit comments

Comments
 (0)