Skip to content

Commit 3902f54

Browse files
devmgnclaude
andcommitted
docs: add CI/CD documentation and fix tool-versions for Renovate
- Add GitHub & CI/CD section to CLAUDE.md with branch strategy, shared setup action info, and CI notes - Change `node` to `nodejs` in .tool-versions for Renovate asdf manager compatibility Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 3f9e883 commit 3902f54

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
node 24.13.0
1+
nodejs 24.13.0
22
pnpm 10.28.0

CLAUDE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,22 @@ The project generates TypeScript clients from `openapi.yml`:
249249
4. Export as named export (no default exports per linting rules)
250250
5. Add unit tests if component has logic
251251

252+
### GitHub & CI/CD
253+
254+
#### Branch Strategy
255+
- Main branch: `main`
256+
- Feature branches: `feature/*` (e.g., `feature/add-login`, `feature/fix-header`)
257+
- Always create branches from `main` with `feature/` prefix
258+
259+
#### Shared Setup Action
260+
- Located at `.github/actions/setup/action.yml`
261+
- Handles: pnpm install, Node.js setup, dependency caching
262+
- Input `setup-env`: Set to `'false'` to skip `.env.local` copy (used by Chromatic)
263+
264+
#### CI Notes
265+
- `upload-artifact` requires `include-hidden-files: true` for `.next/` directory
266+
- `.tool-versions` uses `nodejs` (not `node`) for Renovate compatibility
267+
252268
### Important Notes
253269
- This project uses **Next.js 16** and **React 19** with React Compiler enabled
254270
- MSW worker is initialized automatically via `pnpm init:msw` (postinstall hook)

0 commit comments

Comments
 (0)