Publish to Microsoft Marketplace #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Microsoft Marketplace | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Environment Variables | |
uses: tw3lveparsecs/github-actions-setvars@v0.1 | |
with: | |
envFilePath: ./envvars.for.actions | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Publish | |
run: | | |
npm i --workspaces | |
npm run compile --workspaces | |
npm install -g vsce | |
cd vscode && npx vsce publish -p ${{ secrets.VSCE_TOKEN }} |