Skip to content

publish also to openvsx marketplace #49

publish also to openvsx marketplace

publish also to openvsx marketplace #49

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
jobs:
if_merged:
name: Publish the VS Code Extension
if: github.event.pull_request.merged == true
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 ovsx
- run: npm run pretest
- name: Finally, publish to the marketplace.
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
- name: Finally, publish to the OpenVSX marketplace.
run: ovsx publish --pat ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }}