Skip to content

Commit 2716f2c

Browse files
committed
Push version before creating release
1 parent fc32839 commit 2716f2c

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ jobs:
2323
with:
2424
node-version: "16"
2525

26-
- run: npm version ${{ github.event.inputs.version }}
26+
- name: Bump version and push
27+
run: |
28+
git config --global user.email "[email protected]"
29+
git config --global user.name "GitHub Actions"
30+
31+
npm version ${{ github.event.inputs.version }} --no-git-tag-version
32+
git add package.json package-lock.json
33+
git commit -m "Bump version to ${{ github.event.inputs.version }}"
34+
35+
git push
36+
2737
- run: npm ci
2838
- run: npm run package
2939

@@ -59,9 +69,3 @@ jobs:
5969
pat: ${{ secrets.PUBLISHER_KEY }}
6070
registryUrl: https://marketplace.visualstudio.com
6171
extensionFile: ./vscode-github-actions-${{ github.event.inputs.version }}.vsix
62-
63-
- name: Push version bump
64-
run: |
65-
git config --global user.email "[email protected]"
66-
git config --global user.name "GitHub Actions"
67-
git push

0 commit comments

Comments
 (0)