Skip to content

build: GH action for publish vscode extension #1

build: GH action for publish vscode extension

build: GH action for publish vscode extension #1

Workflow file for this run

on:
push:
tags:
- v*
jobs:
build:
steps:

Check failure on line 8 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: 8, Col: 5): Required property is missing: runs-on
- 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, '-')
run: vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}