From 554c7b8914228c12a8f46f56b5124c5effee1b9d Mon Sep 17 00:00:00 2001 From: divyanshujethi Date: Wed, 25 Nov 2026 01:36:49 +0530 Subject: [PATCH] fix(ci): update action-gh-release SHA to v3.0.4 and fix VSCE_PAT env guard --- .github/workflows/publish.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b5d88a9..1255293 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -55,7 +55,7 @@ jobs: - name: Attach VSIX & SBOM to GitHub Release if: startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@c062e08bd5328157348241fa0833b7d8b97943b7 # v2.0.8 + uses: softprops/action-gh-release@8a0cd651e5b2365bd640854a3fa5dfc70e4875f3 # v3.0.4 with: generate_release_notes: true files: | @@ -71,14 +71,18 @@ jobs: run: | if [ -n "$OVSX_PAT" ]; then echo "🚀 Publishing to Open VSX using PAT..." - npx ovsx publish -p "$OVSX_PAT" --skip-duplicate + npx ovsx publish $(ls *.vsix | head -n 1) -p "$OVSX_PAT" --skip-duplicate else echo "🔐 Publishing to Open VSX using OIDC Trusted Publishing..." - npx ovsx publish --trusted-publishing --skip-duplicate + npx ovsx publish $(ls *.vsix | head -n 1) --trusted-publishing --skip-duplicate fi - name: Publish to VS Code Marketplace - if: env.VSCE_PAT != '' env: VSCE_PAT: ${{ secrets.VSCE_PAT }} - run: npx @vscode/vsce publish -p "${{ secrets.VSCE_PAT }}" --no-dependencies + run: | + if [ -n "$VSCE_PAT" ]; then + npx @vscode/vsce publish -p "$VSCE_PAT" --no-dependencies + else + echo "VSCE_PAT not configured; skipping VS Code Marketplace publish." + fi