Skip to content

fix 2 publish-extension.yml #3

fix 2 publish-extension.yml

fix 2 publish-extension.yml #3

name: Publish VS Code Extension
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install vsce
run: npm install -g vsce
- name: Publish Extension
env:
AZURE_ACCESS_TOKEN: ${{ secrets.AZURE_ACCESS_TOKEN }}
run: vsce publish -p $AZURE_ACCESS_TOKEN