Repository navigation
fix(ci): add stable storybook/ path for permanent Storybook links - #758
Merged
Merged
Conversation
rubyycheung
enabled auto-merge (squash)
March 20, 2026 18:32
josephfarina
approved these changes
Mar 20, 2026
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
josephfarina
changed the base branch from
main
to
navi/fix/codeowner-gate-upsert
March 20, 2026 18:35
josephfarina
changed the base branch from
navi/fix/codeowner-gate-upsert
to
main
March 20, 2026 18:36
Two changes: 1. Deploy workflow now also copies the Storybook build to a stable storybook/ directory. Links like .../storybook/index.html?path=... will always work regardless of hash directory cleanup. 2. Cleanup workflow now reads the latest file and protects that hash from deletion — prevents the race where main HEAD advances but the previous deploy gets cleaned up before the new one lands.
The existing LATEST_DEPLOYED git-log logic already handles protecting the most recent deploy. Keeping this PR focused on the stable storybook/ path.
rubyycheung
force-pushed
the
navi/fix/stable-latest-deploy-v2
branch
from
March 20, 2026 18:44
a84a8be to
629058d
Compare
cixzhang
pushed a commit
that referenced
this pull request
Apr 26, 2026
* fix(ci): add stable storybook/ path + protect latest deploy from cleanup Two changes: 1. Deploy workflow now also copies the Storybook build to a stable storybook/ directory. Links like .../storybook/index.html?path=... will always work regardless of hash directory cleanup. 2. Cleanup workflow now reads the latest file and protects that hash from deletion — prevents the race where main HEAD advances but the previous deploy gets cleaned up before the new one lands. * remove cleanup-previews changes per review The existing LATEST_DEPLOYED git-log logic already handles protecting the most recent deploy. Keeping this PR focused on the stable storybook/ path.
cixzhang
pushed a commit
that referenced
this pull request
Jun 21, 2026
* fix(ci): add stable storybook/ path + protect latest deploy from cleanup Two changes: 1. Deploy workflow now also copies the Storybook build to a stable storybook/ directory. Links like .../storybook/index.html?path=... will always work regardless of hash directory cleanup. 2. Cleanup workflow now reads the latest file and protects that hash from deletion — prevents the race where main HEAD advances but the previous deploy gets cleaned up before the new one lands. * remove cleanup-previews changes per review The existing LATEST_DEPLOYED git-log logic already handles protecting the most recent deploy. Keeping this PR focused on the stable storybook/ path.
cixzhang
pushed a commit
that referenced
this pull request
Jun 21, 2026
* fix(ci): add stable storybook/ path + protect latest deploy from cleanup Two changes: 1. Deploy workflow now also copies the Storybook build to a stable storybook/ directory. Links like .../storybook/index.html?path=... will always work regardless of hash directory cleanup. 2. Cleanup workflow now reads the latest file and protects that hash from deletion — prevents the race where main HEAD advances but the previous deploy gets cleaned up before the new one lands. * remove cleanup-previews changes per review The existing LATEST_DEPLOYED git-log logic already handles protecting the most recent deploy. Keeping this PR focused on the stable storybook/ path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Storybook links in shared docs keep breaking because the deploy workflow publishes to
<hash>/directories that get cleaned up over time.Fix
Deploy workflow now also copies the Storybook build to a stable
storybook/directory. Links like:will always work regardless of hash directory cleanup. The
storybook/directory gets overwritten on every push to main, so it's always up to date.Same change also adds a stable
sandbox/directory.Cloned from #755.