-
-
Notifications
You must be signed in to change notification settings - Fork 263
Add automatic StackBlitz sync after npm release #2820
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
base: main
Are you sure you want to change the base?
Conversation
|
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: mrlubos <[email protected]>
Co-authored-by: mrlubos <[email protected]>
|
@copilot want to update this pull request to the latest and resolve conflicts? |
β¦licts Co-authored-by: mrlubos <[email protected]>
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2820 +/- ##
=======================================
Coverage 30.29% 30.29%
=======================================
Files 465 465
Lines 39592 39592
Branches 2411 2411
=======================================
Hits 11996 11996
Misses 27565 27565
Partials 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. β View full report in Codecov by Sentry. π New features to boost your workflow:
|
commit: |
StackBlitz Sync After Release - Implementation Complete β
This PR implements Step 2 of the StackBlitz sync issue: Automatic synchronization of examples to StackBlitz after npm publish.
π Implementation Checklist
π― What This PR Does
Automatically syncs examples to StackBlitz after every npm release:
package.jsonfiles:workspace:*β^X.Y.Zπ Files Changed (8 files)
Scripts:
scripts/update-examples-npm-versions.sh(147 lines) - Sync automation scriptCI/CD:
.github/workflows/release.yml(95 lines) - Added post-publish stepsDocumentation:
examples/STACKBLITZ.md(84 lines) - All 14 StackBlitz example URLsexamples/README.md- Updated with StackBlitz integration sectiondocs/stackblitz-implementation.md(293 lines) - Complete implementation guidedocs/stackblitz-testing.md(95 lines) - Testing proceduresConfiguration:
package.json- Addedexamples:update-npm-versionsscriptexamples/openapi-ts-openai/src/client/types.gen.ts- Updated from mainπ Stable StackBlitz URLs
All 14 examples (except
openapi-ts-sample) are accessible via:Examples:
See
examples/STACKBLITZ.mdfor complete list of 14 examples.βοΈ How It Works
graph LR A[Release PR Merged] --> B[Changesets Publishes] B --> C{Publish Success?} C -->|Yes| D[Poll npm for Package] C -->|No| E[End] D --> F[Update Examples] F --> G[Commit to Main] G --> H[StackBlitz Import Ready]Key Features:
π§ͺ Testing
Manual Test Available:
# Dry run with mock version pnpm examples:update-npm-versionsValidation:
π Security
π Documentation
Three comprehensive guides:
π Next Steps
π Comparison with Requirements
Both steps now complete! The system is production-ready and will activate on the next release.
π¬ Notes
workspace:*during development^X.Y.Zfrom npmReady to merge and test on next release! π
Original prompt
Fixes #2798
π‘ You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.