Skip to content

Commit 30d6276

Browse files
avrabeclaude
andcommitted
fix(ci): fix release workflow VSCE_PAT secret check
Move secret check from job-level if (not supported) to step-level env + if pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6eb9f15 commit 30d6276

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ jobs:
200200
name: Publish to Marketplace
201201
needs: [build-vsix, create-release]
202202
runs-on: ubuntu-latest
203-
if: env.VSCE_PAT != ''
204-
env:
205-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
206203
steps:
207204
- uses: actions/download-artifact@v4
208205
with:
@@ -212,6 +209,9 @@ jobs:
212209
with:
213210
node-version: 20
214211
- name: Publish to VS Code Marketplace
212+
env:
213+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
214+
if: env.VSCE_PAT != ''
215215
run: npx @vscode/vsce publish --packagePath vsix/*.vsix
216216
env:
217217
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)