Skip to content

Commit 5110bdf

Browse files
committed
ci(release): web deploy keeps vp dlx and checks out only package.json
1 parent 4a71365 commit 5110bdf

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,6 +1149,20 @@ jobs:
11491149
T3CODE_WEB_NIGHTLY_DOMAIN: ${{ vars.T3CODE_WEB_NIGHTLY_DOMAIN }}
11501150
VERCEL_TEAM_SLUG: ${{ vars.VERCEL_TEAM_SLUG }}
11511151
steps:
1152+
- name: Checkout package.json
1153+
uses: actions/checkout@v6
1154+
with:
1155+
ref: ${{ needs.preflight.outputs.ref }}
1156+
sparse-checkout: package.json
1157+
sparse-checkout-cone-mode: false
1158+
1159+
- name: Setup Vite+
1160+
uses: voidzero-dev/setup-vp@v1
1161+
with:
1162+
node-version-file: package.json
1163+
cache: false
1164+
run-install: false
1165+
11521166
- name: Alias channel
11531167
shell: bash
11541168
run: |
@@ -1177,13 +1191,13 @@ jobs:
11771191
vercel_scope_args=(--scope "${VERCEL_TEAM_SLUG:-$VERCEL_ORG_ID}")
11781192
11791193
echo "Aliasing $DEPLOYMENT_URL to $channel_domain."
1180-
npx --yes [email protected] alias set "$DEPLOYMENT_URL" "$channel_domain" \
1194+
vp dlx [email protected] alias set "$DEPLOYMENT_URL" "$channel_domain" \
11811195
--token "$VERCEL_TOKEN" \
11821196
"${vercel_scope_args[@]}"
11831197
11841198
if [[ "$channel_name" == "latest" && -n "$router_domain" && "$router_domain" != "$channel_domain" ]]; then
11851199
echo "Aliasing $DEPLOYMENT_URL to router domain $router_domain."
1186-
npx --yes [email protected] alias set "$DEPLOYMENT_URL" "$router_domain" \
1200+
vp dlx [email protected] alias set "$DEPLOYMENT_URL" "$router_domain" \
11871201
--token "$VERCEL_TOKEN" \
11881202
"${vercel_scope_args[@]}"
11891203
fi

0 commit comments

Comments
 (0)