-
Notifications
You must be signed in to change notification settings - Fork 0
Add changesets and automated release workflow #75
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
Conversation
|
@copilot 继续 |
- Install @changesets/cli package - Configure changesets for monorepo (ignore examples/apps, public access) - Add changeset scripts to package.json - Create GitHub Actions workflow for automated releases - Update CONTRIBUTING.md with changeset usage guide - Update .github/WORKFLOWS.md with changeset documentation - Enhance .changeset/README.md with Object UI specific guidance Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Changesets for automated version management and package publishing in the Object UI monorepo. It replaces manual versioning with an automated workflow that creates version PRs and publishes packages to npm when changesets are merged.
Changes:
- Integrated Changesets CLI for version management and automated releases
- Created GitHub Actions workflow for automated package publishing
- Added comprehensive documentation for the changeset workflow
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Added changesets CLI dependency and npm scripts for version management |
| CONTRIBUTING.md | Added versioning section with changeset creation guidelines and workflow examples |
| .github/workflows/changeset-release.yml | Created automated release workflow triggered on main branch pushes |
| .github/WORKFLOWS.md | Documented the changeset release workflow with process diagrams |
| .changeset/config.json | Configured changeset settings for monorepo with package exclusions |
| .changeset/README.md | Added quick start guide for creating and using changesets |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
| "@apps/*", | ||
| "@examples/*" |
Copilot
AI
Jan 15, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ignore patterns use '@apps/' and '@examples/', but these don't match typical monorepo package naming conventions where packages are usually scoped with the organization name. Verify these patterns match the actual package names in your monorepo. If packages are named differently (e.g., 'apps/' or 'examples/' without the @ prefix), update the patterns accordingly.
- Create changeset-check.yml workflow to verify PRs include changesets - Update .github/WORKFLOWS.md with changeset check documentation - Add skip-changeset label support for PRs that don't need changesets Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
|
@copilot 是否建议所有包统一版本号 |
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
- Create CHANGESET_SETUP.md with detailed guide on changeset workflow - Document how to use changesets for contributors - Explain automated release process for maintainers - Include troubleshooting and example changesets Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
- Add contents: read permission to changeset-check.yml - Addresses CodeQL security recommendation for workflow permissions Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
📦 Bundle Size Report
Size Limits
|
|
✅ All checks passed!
|
Implements changeset-based version management and automated npm publishing for the monorepo. Addresses the requirement: "增加changeset以及自动化发版本流程".
Changes
Changeset Infrastructure
@changesets/cliv2.29.8@apps/*and@examples/*changeset,changeset:version,changeset:publishGitHub Actions Workflows
changeset-release.yml(main → npm)NPM_TOKENsecretchangeset-check.yml(PR validation)skip-changesetordependencieslabelscontents: readpermissionDocumentation
Workflow Example
Production Setup Required
Add
NPM_TOKENto repository secrets (Settings → Secrets and variables → Actions)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.