Skip to content

build: GH action for publish vscode extension #2

build: GH action for publish vscode extension

build: GH action for publish vscode extension #2

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yaml (Line: 26, Col: 11): Unrecognized named-value: 'not'. Located at position 42 within expression: startsWith(github.ref, 'refs/tags/v') && not contains(github.ref, '-')
run: vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}