File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,15 +38,20 @@ jobs:
3838 uses : actions/setup-node@v5
3939 with :
4040 node-version : 22.x
41- - name : npm ci
42- run : npm ci
4341 - name : Check Azure PAT
42+ id : azure-pat
4443 run : |
4544 if [ -z "${AZURE_DEVOPS_TOKEN_OPENUPM_PIPELINE:-}" ]; then
46- echo "AZURE_DEVOPS_TOKEN_OPENUPM_PIPELINE is required for Azure E2E."
47- exit 1
45+ echo "AZURE_DEVOPS_TOKEN_OPENUPM_PIPELINE is not configured; skipping Azure E2E."
46+ echo "has_token=false" >> "$GITHUB_OUTPUT"
47+ else
48+ echo "has_token=true" >> "$GITHUB_OUTPUT"
4849 fi
50+ - name : npm ci
51+ if : steps.azure-pat.outputs.has_token == 'true'
52+ run : npm ci
4953 - name : Run Azure git e2e fixture
54+ if : steps.azure-pat.outputs.has_token == 'true'
5055 run : |
5156 node scripts/runAzureFixture.js \
5257 --source-branch "$SOURCE_BRANCH" \
5661 --package-version "1.0.1" \
5762 --package-source "git"
5863 - name : Run Azure GitHub Release asset e2e fixture
64+ if : steps.azure-pat.outputs.has_token == 'true'
5965 env :
6066 ASSET_URL : https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/test/fixtures/assets/com.example.release-asset-1.0.0.tgz
6167 run : |
You can’t perform that action at this time.
0 commit comments