From 5e053f33746e6179aa9151ed3adf5a9628fe89e6 Mon Sep 17 00:00:00 2001 From: Emile Rolley Date: Mon, 21 Oct 2024 18:48:48 +0200 Subject: [PATCH] ci: fix some issues --- .github/workflows/publish.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 633f5ee..2d0e9e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,23 +26,25 @@ jobs: registry-url: https://registry.npmjs.org/ node-version: 20.x cache: yarn - - name: Install dependencies - run: yarn install --immutable - - name: Build package - run: npx vsce package - - name: Publish - run: yarn deploy - env: - VSCE_PAT: ${{ secrets.VSCE_PAT }} # - name: Upload artifact # uses: actions/upload-artifact@v4 # with: # name: VSIX # path: "*.vsix" - uses: softprops/action-gh-release@v2 + # if: startsWith(github.ref, 'refs/tags/') with: generate_release_notes: true files: "*.vsix" draft: false + tag: ${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Install dependencies + run: yarn install --immutable + - name: Build package + run: npx vsce package + - name: Publish + run: yarn deploy + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }}