Skip to content

Commit eacac5e

Browse files
committed
ci: enable corepack for web Vercel deploy to use pnpm@11
1 parent 3318e11 commit eacac5e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,21 @@ jobs:
168168
CMS_URL="${{ needs.deploy-cms.outputs.deployment_url }}"
169169
170170
if [ "$IS_PROD" == "true" ]; then
171-
DEPLOYMENT_URL=$(vercel deploy --prod --yes --token=${{ secrets.VERCEL_TOKEN }})
171+
DEPLOYMENT_URL=$(vercel deploy --prod --yes --token=${{ secrets.VERCEL_TOKEN }} \
172+
--build-env ENABLE_EXPERIMENTAL_COREPACK=1)
172173
elif [ -n "$CMS_URL" ]; then
173174
# Preview with CMS preview URL and bypass secret for Vercel Authentication
174175
DEPLOYMENT_URL=$(vercel deploy --yes --token=${{ secrets.VERCEL_TOKEN }} \
176+
--build-env ENABLE_EXPERIMENTAL_COREPACK=1 \
175177
--build-env CMS_URL=$CMS_URL \
176178
--build-env CMS_VERCEL_AUTOMATION_BYPASS_SECRET=${{ secrets.CMS_VERCEL_AUTOMATION_BYPASS_SECRET }} \
177179
--env CMS_URL=$CMS_URL \
178180
--env CMS_VERCEL_AUTOMATION_BYPASS_SECRET=${{ secrets.CMS_VERCEL_AUTOMATION_BYPASS_SECRET }})
179181
else
180182
# Preview without CMS override (uses production CMS from Vercel env vars)
181183
echo "CMS deployment skipped, using production CMS from Vercel env vars"
182-
DEPLOYMENT_URL=$(vercel deploy --yes --token=${{ secrets.VERCEL_TOKEN }})
184+
DEPLOYMENT_URL=$(vercel deploy --yes --token=${{ secrets.VERCEL_TOKEN }} \
185+
--build-env ENABLE_EXPERIMENTAL_COREPACK=1)
183186
fi
184187
echo "deployment_url=$DEPLOYMENT_URL" >> $GITHUB_OUTPUT
185188
env:

0 commit comments

Comments
 (0)