CD #247
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: CD | |
on: create | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
deploy: | |
if: (github.event.ref_type == 'tag') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
# Make sure the version number in the tag matches the version in package.json | |
- name: match-tag-to-package-version | |
uses: geritol/[email protected] # https://github.com/geritol/match-tag-to-package-version | |
env: | |
TAG_PREFIX: refs/tags/ | |
# Install deps, build, pack and deploy | |
- name: Build | |
run: yarn install && yarn vsce publish | |
env: | |
VSCE_PAT: ${{secrets.VSCE_PAT}} |