A GitHub Action to automate deploying VS Code extensions by using vsce.
It will enable workflows to easily deploy your VS Code extensions to the marketplace.
Here's an example workflow which publishes an extension when you push to the master branch.
on:
push:
branches:
- master
name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- uses: lannonbr/vsce-action@4.0.0
with:
args: "publish -p $VSCE_TOKEN"
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
The VSCE_TOKEN
secret is used to authenticate with Azure DevOps when running the vsce
CLI. You can find out how to create this token here on the VS Code Docs: Publishing VS Code Extensions
master
branch has changed since the last build.Release
label are merged into Master.Creating and publishing extensions with vsce
is already fairly simple, but this will further integrate it into CI workflows with GitHub Actions.