Publish extension to marketplace #6
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
on: | |
workflow_dispatch: | |
inputs: | |
kind: | |
description: 'Update kind (major, minor, patch)' | |
default: 'patch' | |
name: Publish extension to marketplace | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm install -g @vscode/vsce | |
- run: git config --global user.email "anolte5"12@gmail.com | |
- run: git config --global user.name "Andrew Nolte" | |
# Use vsce first- this will bump the version number | |
- name: Publish to Visual Studio Marketplace | |
run: vsce publish ${{ github.event.inputs.kind }} --pat ${{ secrets.VS_MARKETPLACE_TOKEN }} | |
- run: npm install -g ovsx | |
- name: Publish to Open Vsix | |
run: npx ovsx publish -p ${{ secrets.OPEN_VSX_TOKEN }} *.vsix | |
- run: git push |