fixed publish workflow #7
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 vscode extension" | ||
on: push | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
- run: npm run install:all | ||
- run: npm install @vscode/vsce | ||
- run: vsce package | ||
- run: echo ${{VSCE_PAT}} | vsce login ${{VSCE_USER}} | ||
env: | ||
VSCE_USER: ${{variables.VSCE_USER}} | ||
VSCE_PAT: ${{secrets.VSCE_PAT}} | ||
- name: publish | ||
run: vsce publish |