-
Notifications
You must be signed in to change notification settings - Fork 6
Add playground-to-example sync infrastructure #468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
a779a7d
Initial plan
Copilot 8c6c5ef
Add sync-examples script and CI workflow for playground-example sync
Copilot 70b9c6a
Update examples README to document sync workflow
Copilot c666461
Merge branch 'main' into copilot/consolidate-playgrounds-examples
yamcodes 82cbce5
[autofix.ci] apply automated fixes
autofix-ci[bot] 005cdc2
Merge branch 'main' into copilot/consolidate-playgrounds-examples
yamcodes de71494
Sync all examples from playgrounds, including basic and basic-js
Copilot 7950845
Merge branch 'main' into copilot/consolidate-playgrounds-examples
yamcodes 185eed9
[autofix.ci] apply automated fixes
autofix-ci[bot] e9d3436
feat: Update example dependencies, refine package manager version syn…
yamcodes 3071c40
Merge branch 'copilot/consolidate-playgrounds-examples' of https://gi…
yamcodes 1ae9adb
chore: reorder devDependencies in basic example package.json files
yamcodes 6bc2301
feat: Add example synchronization utility including file system helpe…
yamcodes 36f0151
fix: Pin rolldown-vite dependency to 7.2.10 and unify file exclusion …
yamcodes 79a8830
[autofix.ci] apply automated fixes
autofix-ci[bot] 88a8f16
feat: Add `skipSync` option to bypass example synchronization.
yamcodes 43fe889
feat: Introduce a new standard schema playground app, update existing…
yamcodes e5a8414
chore: Add type annotation to transform function and update pnpm lock…
yamcodes a721a0e
[autofix.ci] apply automated fixes
autofix-ci[bot] cbc9ce7
style: add explicit string type to Zod transformation parameter
yamcodes c2158c1
chore: reorder devDependencies in package.json
yamcodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: sync-examples | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - "apps/playgrounds/**" | ||
| - "examples/**" | ||
| - "bin/sync-examples.js" | ||
| push: | ||
| branches: ["main"] | ||
| paths: | ||
| - "apps/playgrounds/**" | ||
| - "examples/**" | ||
| - "bin/sync-examples.js" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check-sync: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
|
|
||
| - name: Use Node.js | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: "pnpm" | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install | ||
|
|
||
| - name: Build packages | ||
| run: pnpm build:packages | ||
|
|
||
| - name: Check examples sync | ||
| run: pnpm sync:examples:check | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.