update workflow #4
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: npx pnpm i | |
- name: Package Extension | |
run: npx vsce package --no-dependencies | |
- name: Publish Packaged Extension | |
env: | |
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }} | |
run: npx vsce publish -p $VSCE_TOKEN --no-dependencies |