Skip to content

Commit 41b5c2a

Browse files
hyangahsuzmue
authored andcommitted
.github/workflows: fix release.yml to use npx vsce for packaging
Updates #2676 Change-Id: Idba55e5976bf85e587a4cef04773c15114446087 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/470975 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Suzy Mueller <[email protected]> (cherry picked from commit dde5592e3d5a3825cc9a68b7d7268c672d4c319a) Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/471036 Run-TryBot: Suzy Mueller <[email protected]> Reviewed-by: Jamal Carvalho <[email protected]>
1 parent 5ab6e77 commit 41b5c2a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ jobs:
8080
npm ci
8181
npm run vscode:prepublish
8282
83-
- name: package
84-
uses: lannonbr/vsce-action@0f3391ee0477b08fae949eb0a875e91e6d20b075
85-
with:
86-
args: "package"
83+
- name: package extension
84+
run: npx vsce package -o "./go-${{ env.EXT_VERSION }}.vsix"
8785

8886
- name: create release
8987
id: create_release
@@ -108,6 +106,6 @@ jobs:
108106

109107
- name: publish
110108
if: env.EXT_ISPREVIEW != 1 && github.repository == 'golang/vscode-go'
111-
run: npx vsce publish -i "./go-nightly-${{ env.VSCODE_GO_VERSION }}.vsix" -p "${{ secrets.VSCE_TOKEN }}"
109+
run: npx vsce publish -i "./go-${{ env.EXT_VERSION }}.vsix" -p "${{ secrets.VSCE_TOKEN }}"
112110

113111
# TODO: check if the commit is in green state. (test-long.yml results)

0 commit comments

Comments
 (0)