Skip to content

Commit

Permalink
Install vsce and do not checkout the repo when publishing the release…
Browse files Browse the repository at this point in the history
…d artifact

Signed-off-by: Nikolay Blagoev <[email protected]>
  • Loading branch information
nblagoev committed Mar 21, 2021
1 parent 1b03653 commit 58bd53d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ jobs:
name: Publish to Visual Studio Marketplace
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 12.x

- name: Print GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "::debug::$GITHUB_CONTEXT"
echo "::debug::$GITHUB_EVENT_PATH"
- name: Install vsce
run: npm install -g vsce

- name: Download release asset
id: release_asset
Expand All @@ -28,8 +27,8 @@ jobs:
wget $DOWNLOAD_URL
echo "::set-output name=file_name::$FILE_NAME"
- name: Publish
- name: Publish to VS Marketplace
env:
MARKETPLACE_SECRET: ${{ secrets.VS_MARKETPLACE_TOKEN }}
FILE_NAME: ${{ steps.release_asset.outputs.file_name }}
run: "node node_modules/.bin/vsce publish -p $MARKETPLACE_SECRET --packagePath $FILE_NAME"
run: "vsce publish -p $MARKETPLACE_SECRET --packagePath $FILE_NAME"

0 comments on commit 58bd53d

Please sign in to comment.