Skip to content

Commit

Permalink
.github/workflows: fix release.yml to use npx vsce for packaging
Browse files Browse the repository at this point in the history
Updates golang#2676

Change-Id: Idba55e5976bf85e587a4cef04773c15114446087
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/470975
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
  • Loading branch information
hyangah authored and suzmue committed Feb 24, 2023
1 parent 179f226 commit 72249dc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,8 @@ jobs:
npm ci
npm run vscode:prepublish
- name: package
uses: lannonbr/vsce-action@0f3391ee0477b08fae949eb0a875e91e6d20b075
with:
args: "package"
- name: package extension
run: npx vsce package -o "./go-${{ env.EXT_VERSION }}.vsix"

- name: create release
id: create_release
Expand All @@ -108,6 +106,6 @@ jobs:

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

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

0 comments on commit 72249dc

Please sign in to comment.