Skip to content

update action

update action #4

Workflow file for this run

name: Publish VSCode Extension
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
environment: Release
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: npm
- name: Install
run: npm install --frozen-lockfile
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: steps.changesets.outputs.hasChangesets == 'false'
run: npm run vsce-publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}