Skip to content

Commit 2f1d8fe

Browse files
authored
Only test access token on main branch
1 parent 7a8b24d commit 2f1d8fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
yarn lint
2929
vsce package --pre-release
3030
- name: Test PAT
31+
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
3132
env:
3233
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }}
3334
run: |

0 commit comments

Comments
 (0)