Skip to content

Commit 722b2cd

Browse files
committed
Fixing typo in secret env
1 parent de1feb7 commit 722b2cd

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/publish.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,26 @@ jobs:
2929
- name: Cleanup xvfb pidx
3030
uses: bcomnes/cleanup-xvfb@v1
3131
- name: Build pre-release extension
32+
id: package_name_pre
3233
if: env.PRE_RELEASE == 'true'
33-
run: ./node_modules/.bin/vsce package --pre-release --no-yarn
34+
run: |
35+
./node_modules/.bin/vsce package --pre-release --no-yarn
36+
echo "::set-output name=VSIX_FILE::$(ls -- *.vsix)"
3437
- name: Build release extension
38+
id: package_name
3539
if: env.FULL_RELEASE == 'true'
36-
run: ./node_modules/.bin/vsce package --no-yarn
40+
run: |
41+
./node_modules/.bin/vsce package --no-yarn
42+
echo "::set-output name=VSIX_FILE::$(ls -- *.vsix)"
3743
- name: Publish Pre-release to Visual Studio Marketplace
3844
if: env.PRE_RELEASE == 'true'
3945
env:
40-
VCSE_PAT: ${{ secrets.MARKETPLACE_PAT }}
41-
run: ./node_modules/.bin/vsce publish --pre-release --no-yarn
46+
VSCE_PAT: ${{ secrets.MARKETPLACE_PAT }}
47+
VSIX_FILE: ${{ steps.package_name_pre.outputs.VSIX_FILE }}
48+
run: ./node_modules/.bin/vsce publish --pre-release --no-yarn -i "$GITHUB_WORKSPACE"/"$VSIX_FILE"
4249
- name: Publish Release to Visual Studio Marketplace
4350
if: env.FULL_RELEASE == 'true'
4451
env:
45-
VCSE_PAT: ${{ secrets.MARKETPLACE_PAT }}
46-
run: ./node_modules/.bin/vsce publish --no-yarn
52+
VSCE_PAT: ${{ secrets.MARKETPLACE_PAT }}
53+
VSIX_FILE: ${{ steps.package_name.outputs.VSIX_FILE }}
54+
run: ./node_modules/.bin/vsce publish --no-yarn -i "$GITHUB_WORKSPACE"/"$VSIX_FILE"

0 commit comments

Comments
 (0)