File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 39
39
- name : Prepare Release
40
40
run : build/all.bash prepare_nightly
41
41
42
+ - name : Version
43
+ run : |
44
+ echo "VSCODE_GO_VERSION=$(jq .version package.json | tr -d '"')" >> $GITHUB_ENV
45
+
46
+ - name : Package Extension
47
+ run : npx vsce package -o "./go-nightly-${{ env.VSCODE_GO_VERSION }}.vsix"
48
+
42
49
- name : Compile
43
50
run : npm run vscode:prepublish
44
51
62
69
63
70
- name : Publish
64
71
if : github.ref == 'refs/heads/master' && github.repository == 'golang/vscode-go'
65
- uses : lannonbr/vsce-action@0f3391ee0477b08fae949eb0a875e91e6d20b075
66
- with :
67
- args : " publish -p $VSCE_TOKEN"
68
- env :
69
- VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
72
+ run : |
73
+ echo "publishing ${{ env.VSCODE_GO_VERSION }}"
74
+ ls *.vsix
75
+ npx vsce publish -i "./go-nightly-${{ env.VSCODE_GO_VERSION }}.vsix" -p "${{ secrets.VSCE_TOKEN }}"
Original file line number Diff line number Diff line change @@ -108,10 +108,6 @@ jobs:
108
108
109
109
- name : publish
110
110
if : env.EXT_ISPREVIEW != 1 && github.repository == 'golang/vscode-go'
111
- uses : lannonbr/vsce-action@0f3391ee0477b08fae949eb0a875e91e6d20b075
112
- with :
113
- args : " publish -p $VSCE_TOKEN"
114
- env :
115
- VSCE_TOKEN : ${{ secrets.VSCE_TOKEN }}
111
+ run : npx vsce publish -i "./go-nightly-${{ env.VSCODE_GO_VERSION }}.vsix" -p "${{ secrets.VSCE_TOKEN }}"
116
112
117
113
# TODO: check if the commit is in green state. (test-long.yml results)
You can’t perform that action at this time.
0 commit comments