diff --git a/.github/workflows/test-integration-cli.yml b/.github/workflows/test-integration-cli.yml index 9918d06db..c6335dfe1 100644 --- a/.github/workflows/test-integration-cli.yml +++ b/.github/workflows/test-integration-cli.yml @@ -40,5 +40,5 @@ jobs: - run: yarn run build - run: yarn test-integration-cli env: - VERCEL_TEAM_TOKEN: ${{ secrets.VERCEL_TEAM_TOKEN }} - VERCEL_REGISTRATION_URL: ${{ secrets.VERCEL_REGISTRATION_URL }} + VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }} + VERCEL_TEST_REGISTRATION_URL: ${{ secrets.VERCEL_TEST_REGISTRATION_URL }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a8cee2812..9d314ceb4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -88,8 +88,8 @@ jobs: shell: bash env: VERCEL_CLI_VERSION: ${{ needs.setup.outputs.dplUrl }}/tarballs/vercel.tgz - VERCEL_TEAM_TOKEN: ${{ secrets.VERCEL_TEAM_TOKEN }} - VERCEL_REGISTRATION_URL: ${{ secrets.VERCEL_REGISTRATION_URL }} + VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }} + VERCEL_TEST_REGISTRATION_URL: ${{ secrets.VERCEL_TEST_REGISTRATION_URL }} FORCE_COLOR: '1' conclusion: diff --git a/test/lib/deployment/now-deploy.js b/test/lib/deployment/now-deploy.js index d2f4917f3..58676f46b 100644 --- a/test/lib/deployment/now-deploy.js +++ b/test/lib/deployment/now-deploy.js @@ -200,8 +200,8 @@ async function fetchTokenWithRetry(retries = 5) { NOW_TOKEN, TEMP_TOKEN, VERCEL_TOKEN, - VERCEL_TEAM_TOKEN, - VERCEL_REGISTRATION_URL, + VERCEL_TEST_TOKEN, + VERCEL_TEST_REGISTRATION_URL, } = process.env; if (VERCEL_TOKEN || NOW_TOKEN || TEMP_TOKEN) { if (!TEMP_TOKEN) { @@ -211,7 +211,7 @@ async function fetchTokenWithRetry(retries = 5) { } return VERCEL_TOKEN || NOW_TOKEN || TEMP_TOKEN; } - if (!VERCEL_TEAM_TOKEN || !VERCEL_REGISTRATION_URL) { + if (!VERCEL_TEST_TOKEN || !VERCEL_TEST_REGISTRATION_URL) { throw new Error( process.env.CI ? 'Failed to create test deployment. This is expected for 3rd-party Pull Requests. Please run tests locally.' @@ -219,10 +219,10 @@ async function fetchTokenWithRetry(retries = 5) { ); } try { - const res = await _fetch(VERCEL_REGISTRATION_URL, { + const res = await _fetch(VERCEL_TEST_REGISTRATION_URL, { method: 'POST', headers: { - Authorization: `Bearer ${VERCEL_TEAM_TOKEN}`, + Authorization: `Bearer ${VERCEL_TEST_TOKEN}`, }, }); if (!res.ok) {