v1.2.0 #13
Workflow file for this run
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: Deploy to VSCode marketplace | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Check release version matches package.json | |
run: node ./.github/bin/check-package-version ${{ github.ref }} | |
- name: Install vsce | |
run: npm install -g vsce | |
- name: Publish to VSCode Marketplace | |
env: | |
PAT: ${{ secrets.MARKETPLACE_PAT }} | |
run: vsce publish -p "$PAT" | |
- name: Delete tag on failure | |
if: failure() | |
run: | | |
git push origin :${{ github.ref }} | |
echo "The GitHub release has been relegated to a draft and can be republished when the problems are fixed" | |