diff --git a/.gitea/workflows/devstar-vscode-release.yaml b/.gitea/workflows/devstar-vscode-release.yaml index 956073d..da75c49 100644 --- a/.gitea/workflows/devstar-vscode-release.yaml +++ b/.gitea/workflows/devstar-vscode-release.yaml @@ -24,23 +24,11 @@ jobs: - name: 构建插件 run: | - webpack --mode production && vsce package - - publish: - needs: build - runs-on: ubuntu-latest - if: gitea.ref == 'refs/heads/main' - - steps: - - name: 拉取代码 - uses: https://devstar.cn/actions/checkout@v4 - - - name: 安装依赖 + npm run package + + - name: 发布插件 run: | - npm install - - - name: 发布到 VSCode 市场 - run: vsce publish + npm run publish env: VSCE_PAT: ${{ secrets.VSCE_PAT }}