Skip to content

chore: prepare api7 npm package#7

Draft
juzhiyuan wants to merge 9 commits intomainfrom
api7-fork-npm
Draft

chore: prepare api7 npm package#7
juzhiyuan wants to merge 9 commits intomainfrom
api7-fork-npm

Conversation

@juzhiyuan
Copy link
Copy Markdown

@juzhiyuan juzhiyuan commented May 1, 2026

Summary

  • rename the forked package to @api7/better-auth-ui@3.3.15-api7.0
  • remove the consumer-side prepare build path and move package builds to prepack / prepublishOnly
  • restrict published files to the prebuilt dist package surface
  • add Node.js 22.x / 24.x package build CI and publishing instructions
  • add a tag-triggered npm release workflow using npm Trusted Publishing/OIDC

Why

API7 Developer Portal currently consumes this fork through a GitHub dependency. That makes portal installs rebuild this package in the consumer environment, which is fragile for clean CI, boilerplate users, and future releases.

Publishing a prebuilt @api7/better-auth-ui npm package lets portal keep its existing source imports through an npm alias such as:

"@daveyplate/better-auth-ui": "npm:@api7/better-auth-ui@3.3.15-api7.0"

The release workflow follows the api7/adc release boundary: it publishes only when a version tag like v3.3.15-api7.0 is pushed. Before tagging, npm Trusted Publishing must be configured for api7/better-auth-ui and .github/workflows/release.yaml.

Validation

  • pnpm install --frozen-lockfile
  • pnpm build
  • pnpm pack:dry-run
  • workflow YAML parse check
  • release version check simulation with RELEASE_VERSION=3.3.15-api7.0
  • git diff --check

Note: pnpm lint was also attempted earlier, but the repository currently has unrelated pre-existing formatting issues in src/components/auth/forms/two-factor-form.tsx, src/components/settings/providers/provider-cell.tsx, and src/hooks/use-mobile.ts.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a0ccf5bb-f8eb-4176-8980-c2c4306cee6c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch api7-fork-npm

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant