Merge pull request #18 from HexmosTech/origin/suggest-relevant-envs #1
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 VS Code Extension | |
on: | |
push: | |
branches: | |
- main # Change this to your default branch if it's not 'main' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- name: Install Dependencies | |
run: npm install | |
- name: Package Extension | |
run: npx vsce package | |
- name: Publish Extension | |
# npx vsce publish takes either major or minor arg. | |
# passing minor would make a minor release | |
# passing major would make a major release | |
run: npx vsce publish major | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |