add JS/TS support and document it #44
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: ci | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- run: npm install | |
- run: npm run lint | |
deploy: | |
needs: [lint] | |
if: "success() && startsWith(github.ref, 'refs/tags/')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- run: npm install -g vsce | |
- run: vsce ls | |
- run: vsce package | |
- run: vsce publish --githubBranch main --no-git-tag-version | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |