Commit Graph

31 Commits

Author SHA1 Message Date
afc163 614660de61 fix: authenticate sync release checks (#180) 2026-06-22 12:03:03 +08:00
afc163 d16b142aa4 fix: validate synced data in workflow 2026-06-22 00:05:48 +08:00
afc163 bdbb1e1c62 fix: remove hardcoded version in upgrade tests and add baseline test to sync workflow (#156)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-12 19:25:08 +08:00
afc163 ceea85732f fix: add explicit permissions to CI workflow (#133) 2026-06-02 10:34:46 +08:00
afc163 513ab72826 fix: harden sync pipeline and clean up dead metadata fields (#125)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 14:57:11 +08:00
Claude 9dbe4b3cd8 chore: configure Dependabot to use grouped updates (#102)
Agent-Logs-Url: https://github.com/ant-design/ant-design-cli/sessions/c4d27ec1-4858-447b-8a40-6d0a0fc773c2

Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
2026-05-13 11:30:47 +08:00
Alex Zhu 69feb968cd Set npm as the package ecosystem for Dependabot 2026-05-03 13:47:46 +08:00
afc163 6b3418edcc fix: sync workflow never detects new antd versions (#83)
* fix: sync workflow never detects new antd versions

The check-version step compared local data/v6.json against
@ant-design/cli on npm — which is always true since CLI publishes
at the synced version, causing the workflow to skip every run.

Replace with a script that compares the antd npm latest version
against local data, and also covers the recovery scenario where
data was pushed but npm publish failed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: sync workflow never detects new antd versions

The check-version step compared local data/v6.json against
@ant-design/cli on npm — which is always true since CLI publishes
at the synced version, causing the workflow to skip every run.

Replace with a script that compares the antd npm latest version
against local data, and also covers the recovery scenario where
data was pushed but npm publish failed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-17 18:51:15 +08:00
afc163 a00ad2b474 refactor: optimize sync.yml workflow (#74)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 13:31:24 +08:00
afc163 ae21dc4542 chore: upgrade to Node.js 24
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:47:14 +08:00
afc163 3cb2067694 fix: clear NODE_AUTH_TOKEN for OIDC Trusted Publishing
Ref: https://github.com/actions/setup-node/issues/1440#issuecomment-3571890875

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:46:39 +08:00
afc163 f29a395a2d fix: remove cache from setup-node for OIDC Trusted Publishing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:45:27 +08:00
afc163 87af3fe400 fix: disable setup-node cache for OIDC Trusted Publishing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:44:52 +08:00
afc163 f19034ebc2 fix: clear NODE_AUTH_TOKEN for OIDC Trusted Publishing
setup-node sets an empty NODE_AUTH_TOKEN which interferes with
npm OIDC Trusted Publishing. Unset it before publish.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:41:54 +08:00
afc163 5c05dfa2e7 chore: upgrade actions to v6 and add publish debug info (#72)
- Upgrade actions/checkout from v4 to v6
- Upgrade actions/setup-node from v4 to v6
- Add debug output before npm publish to troubleshoot OIDC issues

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 12:18:26 +08:00
afc163 1c11bb2f7e fix: skip npm version command when version unchanged (#71)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 11:42:10 +08:00
afc163 3f9ad678c3 fix: check npm version instead of data changes for release (#70)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 11:30:27 +08:00
Copilot 4a3a4c7785 ci: add Codecov coverage check and badge (#44)
Co-authored-by: afc163 <507615+afc163@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-03-26 13:36:00 +08:00
afc163 a5014a6085 ci: add npm pack size detection workflow and badge (#39)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 12:28:40 +08:00
afc163 a42aa464b1 fix: sync workflow skips unchanged versions and creates GitHub release (#37)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 23:40:31 +08:00
afc163 df76edc54c fix: resolve CI rollup native module error and improve sync workflow (#34)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 20:17:12 +08:00
afc163 24bc1d1b2d ci: auto-append changelog entry on data sync release (#26)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 14:25:23 +08:00
afc163 322cc5dabb chore: remove semantic-release, publish only on antd data sync (#17)
* release: v0.2.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: add Multi-Format Output as a feature in README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: remove redundant Multi-Format Output feature entry

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore: remove semantic-release, publish only on antd data sync

- Delete release.yml and .releaserc.json
- Uninstall semantic-release and all related plugins
- Update sync.yml to build, test, and publish when antd data changes
- CLI version now tracks antd v6 version directly

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 18:35:51 +08:00
afc163 4498168d0a ci: migrate to semantic-release for automated versioning and publishing (#14) 2026-03-17 20:11:22 +08:00
afc163 8b0d93feb9 chore: simplify sync workflow (#11)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 19:52:21 +08:00
afc163 ecbaf0b0dd ci: switch to GitHub Actions OIDC publishing, remove NPM_TOKEN (#7)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 19:28:24 +08:00
afc163 5d8e48d504 feat: add multi-version snapshot architecture for accurate historical queries
- Add loadMetadataForVersion() to loader.ts with 3-level resolution:
  exact minor match → nearest earlier minor → fallback to latest major
- Add data/versions.json as version index (minor series → snapshot tag)
- Update all 7 command files to use loadMetadataForVersion(versionInfo.version)
- Update sync.yml to extract per-minor snapshots on each daily sync
- Add scripts/bootstrap-snapshots.ts for one-time historical backfill
- Update spec.md with multi-snapshot architecture documentation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 12:16:44 +08:00
afc163 a6da9bf8df chore: pre-publish fixes
- Add prepublishOnly script to always build before publish
- Add publishConfig.access=public and homepage field
- Inject CLI_VERSION at build time via tsup define (no longer hardcoded)
- sync.yml: max-parallel=1 to avoid concurrent push conflicts
- sync.yml: expand publish detection window from 10min to 24h
- README: document -V / --cli-version flag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 21:00:51 +08:00
afc163 21d75b49e4 feat: add auto-extraction scripts and GitHub Actions sync workflow
Add scripts/extract.ts pipeline that extracts antd metadata (components,
props, demos, tokens, semantic, changelog, FAQ) from source. Add daily
GitHub Actions workflow to detect new antd releases and auto-publish.
CLI version now aligns with antd version.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-16 16:24:03 +08:00
afc163 962d8bf18b Fix TS errors, expand migration data, add CI and tests
- Fix TS2783 duplicate property in diff.ts
- Fix loadMetadata call signature mismatch across 7 command files
- Split migrate.ts: extract v4→v5 (34 steps) and v5→v6 (42 steps)
  migration data into separate files
- Supplement v4→v5 with Slider tooltip, Table filterDropdownOpen,
  Drawer style/className, notification.close→destroy, message.warn
- Rewrite v5→v6 based on official migration doc: React 18, icons v6,
  40+ component API deprecations, Form.List, Tag margin, mask blur
- Simplify CI to single Node 22, fix build→test ordering
- Add 26 new tests (scan.ts unit tests + CLI edge cases): 52→78 total

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-14 00:42:46 +08:00
afc163 af4cb586d5 Add GitHub Actions CI workflow and README badges
- Add CI workflow (.github/workflows/ci.yml) with matrix for Node 18/20/22
- Add CI, npm version, and npm downloads badges to README

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 23:56:00 +08:00