Skip to content

Commit eb09e2d

Browse files
Create git tag in deploy workflow
1 parent 8adc0d8 commit eb09e2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
- name: Install dependencies
2525
run: npm --color ci
2626

27+
- name: Read version from package.json
28+
run: |
29+
VERSION=$(node -p "require('./package.json').version")
30+
echo "version=$VERSION" >> $GITHUB_ENV
31+
32+
- name: Create Git tag
33+
run: |
34+
git tag ${{ env.version }}
35+
git push origin ${{ env.version }}
36+
2737
- name: Publish to Open VSX Registry
2838
id: publishToOpenVSX
2939
uses: HaaLeo/publish-vscode-extension@v1

0 commit comments

Comments
 (0)