File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments