From b8105c06c721b2fa48f63849ce16d7d2a53a8874 Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Tue, 17 Jun 2025 17:28:15 +0200 Subject: [PATCH 1/5] fix(actions): add SANITY_CLI_EXTRACT_MANIFEST_ENABLED:false to e2e-ui --- .github/workflows/e2e-ui.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-ui.yml b/.github/workflows/e2e-ui.yml index c50e98637c3..ce7abd31218 100644 --- a/.github/workflows/e2e-ui.yml +++ b/.github/workflows/e2e-ui.yml @@ -130,6 +130,7 @@ jobs: # Delete `SANITY_E2E_SESSION_TOKEN_NEW` from github SANITY_E2E_SESSION_TOKEN: ${{ secrets.SANITY_E2E_SESSION_TOKEN_NEW_STAGING }} SANITY_E2E_PROJECT_ID: ${{ vars.SANITY_E2E_PROJECT_ID_STAGING }} + SANITY_CLI_EXTRACT_MANIFEST_ENABLED: false # the id is based on the PR number and the workflow run id SANITY_E2E_DATASET: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}-{2}', github.event.number, matrix.project, github.run_id) || vars.SANITY_E2E_DATASET_STAGING }} run: pnpm e2e:setup && pnpm e2e:build From 9366da6fa78ef18ebb7706e1a27804a9c01980df Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Tue, 17 Jun 2025 18:06:58 +0200 Subject: [PATCH 2/5] chore(test-studio): remove manifest generation from test-studio build --- dev/test-studio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index e1e99215179..799c0f0d61f 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -5,7 +5,7 @@ "license": "MIT", "author": "Sanity.io ", "scripts": { - "build": "run-s workshop:build sanity:build sanity:manifest", + "build": "run-s workshop:build sanity:build", "clean": "rimraf .sanity dist", "dev": "run-p workshop:dev sanity:dev", "lint": "eslint .", From 9c5ae2fee92a62fe8f8da76df1a87422633855f3 Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Tue, 17 Jun 2025 18:40:18 +0200 Subject: [PATCH 3/5] fix(core): add vercel deploy token to e2e-ui action --- .github/workflows/e2e-ui.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/e2e-ui.yml b/.github/workflows/e2e-ui.yml index ce7abd31218..df3bf0ce1ad 100644 --- a/.github/workflows/e2e-ui.yml +++ b/.github/workflows/e2e-ui.yml @@ -131,6 +131,7 @@ jobs: SANITY_E2E_SESSION_TOKEN: ${{ secrets.SANITY_E2E_SESSION_TOKEN_NEW_STAGING }} SANITY_E2E_PROJECT_ID: ${{ vars.SANITY_E2E_PROJECT_ID_STAGING }} SANITY_CLI_EXTRACT_MANIFEST_ENABLED: false + VERCEL_SANITY_API_DEPLOY_TOKEN: ${{ secrets.VERCEL_SANITY_API_DEPLOY_TOKEN }} # the id is based on the PR number and the workflow run id SANITY_E2E_DATASET: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}-{2}', github.event.number, matrix.project, github.run_id) || vars.SANITY_E2E_DATASET_STAGING }} run: pnpm e2e:setup && pnpm e2e:build @@ -197,6 +198,8 @@ jobs: # Delete `SANITY_E2E_SESSION_TOKEN_NEW` from github SANITY_E2E_SESSION_TOKEN: ${{ secrets.SANITY_E2E_SESSION_TOKEN_NEW_STAGING }} SANITY_E2E_PROJECT_ID: ${{ vars.SANITY_E2E_PROJECT_ID_STAGING }} + VERCEL_SANITY_API_DEPLOY_TOKEN: ${{ secrets.VERCEL_SANITY_API_DEPLOY_TOKEN }} + SANITY_CLI_EXTRACT_MANIFEST_ENABLED: false # the id is based on the PR number and the workflow run id SANITY_E2E_DATASET: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}-{2}', github.event.number, matrix.project, github.run_id) || vars.SANITY_E2E_DATASET_STAGING }} # As e2e:build ran in the `install` job, turbopack restores it from cache here From 16c033c1a927ddbc5c6baad7c0962110b1004de7 Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Tue, 17 Jun 2025 18:59:44 +0200 Subject: [PATCH 4/5] fix(actions): update e2e-ui build action --- .github/workflows/e2e-ui.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/e2e-ui.yml b/.github/workflows/e2e-ui.yml index df3bf0ce1ad..8d5b44ca56b 100644 --- a/.github/workflows/e2e-ui.yml +++ b/.github/workflows/e2e-ui.yml @@ -130,7 +130,6 @@ jobs: # Delete `SANITY_E2E_SESSION_TOKEN_NEW` from github SANITY_E2E_SESSION_TOKEN: ${{ secrets.SANITY_E2E_SESSION_TOKEN_NEW_STAGING }} SANITY_E2E_PROJECT_ID: ${{ vars.SANITY_E2E_PROJECT_ID_STAGING }} - SANITY_CLI_EXTRACT_MANIFEST_ENABLED: false VERCEL_SANITY_API_DEPLOY_TOKEN: ${{ secrets.VERCEL_SANITY_API_DEPLOY_TOKEN }} # the id is based on the PR number and the workflow run id SANITY_E2E_DATASET: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}-{2}', github.event.number, matrix.project, github.run_id) || vars.SANITY_E2E_DATASET_STAGING }} @@ -199,7 +198,6 @@ jobs: SANITY_E2E_SESSION_TOKEN: ${{ secrets.SANITY_E2E_SESSION_TOKEN_NEW_STAGING }} SANITY_E2E_PROJECT_ID: ${{ vars.SANITY_E2E_PROJECT_ID_STAGING }} VERCEL_SANITY_API_DEPLOY_TOKEN: ${{ secrets.VERCEL_SANITY_API_DEPLOY_TOKEN }} - SANITY_CLI_EXTRACT_MANIFEST_ENABLED: false # the id is based on the PR number and the workflow run id SANITY_E2E_DATASET: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}-{2}', github.event.number, matrix.project, github.run_id) || vars.SANITY_E2E_DATASET_STAGING }} # As e2e:build ran in the `install` job, turbopack restores it from cache here From 511baae6d4f6e815aed105643a904cd58d505901 Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Tue, 17 Jun 2025 19:37:46 +0200 Subject: [PATCH 5/5] chore(test-studio): restore sanity:manifest in test-studio build --- dev/test-studio/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/test-studio/package.json b/dev/test-studio/package.json index 799c0f0d61f..e1e99215179 100644 --- a/dev/test-studio/package.json +++ b/dev/test-studio/package.json @@ -5,7 +5,7 @@ "license": "MIT", "author": "Sanity.io ", "scripts": { - "build": "run-s workshop:build sanity:build", + "build": "run-s workshop:build sanity:build sanity:manifest", "clean": "rimraf .sanity dist", "dev": "run-p workshop:dev sanity:dev", "lint": "eslint .",