Skip to content

Merge pull request #14 from xiaohuohumax/changeset-release/main #35

Merge pull request #14 from xiaohuohumax/changeset-release/main

Merge pull request #14 from xiaohuohumax/changeset-release/main #35

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
# todo 将 vsix 加入 release
with:
publish: npx changeset tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Visual Studio Marketplace
if: steps.changesets.outputs.hasChangesets == 'true'
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com