# Publishing Aftercare ## One-time setup 1. **npm account** — [npmjs.com](https://www.npmjs.com), enable 2FA, then: ```powershell npm login npm whoami ``` 2. **GitHub Pages** — after the first push, repo → Settings → Pages → Source: **GitHub Actions**. 3. **npm publish from CI (optional)** — add repo secret `NPM_TOKEN` (Automation token). Releases with tag `v0.1.0` trigger [.github/workflows/publish.yml](../.github/workflows/publish.yml). ## Release checklist ```powershell # 1. green local build npm install npm install --prefix ui npm run build npm run doctor:example npm run build:example npm pack --dry-run # 2. bump version in package.json + CHANGELOG.md # 3. commit + push to main # 4. create GitHub release (or tag) # manual publish (if not using the workflow): npm publish --access public ``` ## After first publish ```powershell npx aftercare@latest init smoke-site cd smoke-site npm install npx aftercare doctor npx aftercare build ``` Commercial Competing Use grants: see [COMMERCIAL.md](../COMMERCIAL.md).