Skip to content

Commit d8379ac

Browse files
committed
fix: publish to marketplace step
1 parent 48421c9 commit d8379ac

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ jobs:
5252
git config user.email "github-actions[bot]@users.noreply.github.com"
5353
git tag ${{ env.new_version }}
5454
git push origin ${{ env.new_version }}
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5755
5856
- name: Create GitHub Release
5957
if: success() && env.vsix_file_exists == 'true'
@@ -64,6 +62,14 @@ jobs:
6462
env:
6563
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6664

65+
- name: Publish to Visual Studio Marketplace
66+
if: success() && env.vsix_file_exists == 'true'
67+
run: |
68+
npm install -g vsce
69+
vsce publish
70+
env:
71+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
72+
6773
- name: Commit and push version update
6874
if: success() && env.vsix_file_exists == 'true'
6975
run: |
@@ -73,4 +79,4 @@ jobs:
7379
git commit -m "ci: bump version to ${{ env.new_version }}"
7480
git push origin main --tags
7581
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)