Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(ci): checkout publisher for preview recovery (#5698)

Cindy Zhanga8a0a2e98000
diff --git a/.github/scripts/visual-gate/workflow-concurrency.test.mjs b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
index 2ea615c8b7..3c04cc2300 100644
--- a/.github/scripts/visual-gate/workflow-concurrency.test.mjs
+++ b/.github/scripts/visual-gate/workflow-concurrency.test.mjs
@@ -423,6 +423,11 @@ describe('visual acceptance workflow concurrency', () => {
expect(deployPreview).toContain('gh-pages-publisher.mjs pr-preview');
expect(redeployPreview).toContain('gh-pages-publisher.mjs pr-preview');
+ expect(redeployPreview).toContain('uses: actions/checkout@v7');
+ expect(redeployPreview).toContain('ref: main');
+ expect(redeployPreview.indexOf('uses: actions/checkout@v7')).toBeLessThan(
+ redeployPreview.indexOf('gh-pages-publisher.mjs pr-preview'),
+ );
expect(cleanup).toContain('gh-pages-publisher.mjs cleanup-previews');
expect(compact).toContain('gh-pages-publisher.mjs compact');
expect(vibe).toContain('gh-pages-publisher.mjs vibe-screenshots');
diff --git a/.github/workflows/redeploy-preview.yml b/.github/workflows/redeploy-preview.yml
index 813ea94478..accc3405d3 100644
--- a/.github/workflows/redeploy-preview.yml
+++ b/.github/workflows/redeploy-preview.yml
@@ -43,6 +43,11 @@ jobs:
PR_NUMBER: ${{ github.event.inputs.pr_number }}
steps:
+ - name: Checkout publisher
+ uses: actions/checkout@v7
+ with:
+ ref: main
+
- name: Locate the PR's CI run
id: pr-info
env: