Skip to content

Merge branch 'main' of https://github.com/xiaohuohumax/format-files-b… #3

Merge branch 'main' of https://github.com/xiaohuohumax/format-files-b…

Merge branch 'main' of https://github.com/xiaohuohumax/format-files-b… #3

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: npx vsce publish -p {{ secrets.VSCE_PAT }}