Skip to content

Merge pull request #44 from frailbongat/feature/scrollarea-snippet #1

Merge pull request #44 from frailbongat/feature/scrollarea-snippet

Merge pull request #44 from frailbongat/feature/scrollarea-snippet #1

Workflow file for this run

name: Publish Extension
on:
push:
tags:
- "v*.*.*" # Trigger on new version tags
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js with pnpm
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Lint code
run: pnpm run lint
- name: Check types
run: pnpm run check-types
- name: Build the extension
run: pnpm run build
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OVSX_PAT }}
- name: Publish to VS Code Marketplace
if: secrets.VSCE_PAT != ''

Check failure on line 41 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish Extension

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 41, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VSCE_PAT != ''
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}