build: GH action for publish vscode extension #2
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
on: | ||
push: | ||
tags: | ||
- v* | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- run: npm install | ||
- name: Publish vsce --prerelease | ||
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') | ||
run: vsce publish --prerelease | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
- name: Publish vsce | ||
if: startsWith(github.ref, 'refs/tags/v') && not contains(github.ref, '-') | ||
Check failure on line 26 in .github/workflows/publish.yaml GitHub Actions / .github/workflows/publish.yamlInvalid workflow file
|
||
run: vsce publish | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} |