Skip to content

Publish-VSCode

Publish-VSCode #11

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Publish-VSCode
on:
workflow_dispatch:
push:
tags:
- ducklab-vscode/v*
jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- working-directory: ./vs-extension
run: |
npm i -g pnpm
pnpm install
pnpm run build
pnpm run package
pnpm run publish