Skip to content

打包插件怎么还会偷偷运行命令的 #3

打包插件怎么还会偷偷运行命令的

打包插件怎么还会偷偷运行命令的 #3

Workflow file for this run

name: publish
on:
push:
tags:
- "*"
env:
VSIX_NAME: y3-helper-${{ github.ref_name }}.vsix
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Compile Client
shell: bash
run: |
npm install
npm install -g typescript
tsc -p ./
- name: Pack vsix
shell: bash
run: |
npm install -g @vscode/vsce
vsce package -o "${{ env.VSIX_NAME }}" ${{ github.ref_name }}
- name: Upload vsix
uses: actions/upload-artifact@v4
with:
name: ${{ env.VSIX_NAME }}
path: ${{ env.VSIX_NAME }}
- name: Publish Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
${{ env.VSIX_NAME }}
- name: Publish to VSCode Market
run: vsce publish -i ${{ env.VSIX_NAME }} -p ${{ secrets.VSCODE_TOKEN }}