Skip to content

Workflow file for this run

# This Action is triggered when a new release tag is created in the repository.
# Based on: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
# It packages and publishes the extension to the VSCode marketplace.
# The publish will only have an effect if the version number was bumped in the `package.json`,
# else it will complete this job, and silently fail to publish an update on the marketplace.
name: Publish the VS Code Extension
on:
pull_request:
types:
- closed
# for testing only
#on:
# push:
# branches: [master, staging, trying]
# pull_request:
jobs:
if_merged:
if: github.event.pull_request.merged == true
name: Publish the VS Code Extension to Open VSX

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install --frozen-lockfile
- run: npm install -g vsce
- run: npm run pretest
- name: Finally, publish to the marketplace.
run: npm run publish --registry=https://open-vsx.org/
env:
VSCE_PAT: ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }}