From 2f1d8feadf8f199f404b1821bf70857a8da6196f Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:11:14 +0100 Subject: [PATCH] Only test access token on main branch --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 448696cf..fadc79f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ jobs: yarn lint vsce package --pre-release - name: Test PAT + if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }} env: VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_PAT }} run: |