Skip to content

Commit 2d5bb60

Browse files
committed
chore(release): switch to local npm publish workflow
1 parent 20d8f8c commit 2d5bb60

3 files changed

Lines changed: 23 additions & 50 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

CLAUDE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,27 @@ npm run test # vitest
6262

6363
All four must pass before shipping. Run in order: lint -> typecheck -> build -> test.
6464

65+
## npm Publishing (Local Only)
66+
67+
- npm publish is manual/local (no GitHub Action publish workflow).
68+
- Use this command:
69+
70+
```bash
71+
pnpm publish:npm
72+
```
73+
74+
What it does:
75+
1. lint
76+
2. typecheck
77+
3. build
78+
4. test
79+
5. `npm publish --access public`
80+
81+
Prerequisites:
82+
- `npm login` completed on your machine
83+
- npm account/package permissions set
84+
- if npm 2FA is enabled, provide OTP during publish
85+
6586
### ESLint Rules
6687
- Strict type-checked config (`strictTypeChecked`)
6788
- No `any` — use `unknown` + type guards

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"test:e2e": "playwright test",
2020
"lint": "eslint src/ app/ components/ hooks/ lib/",
2121
"typecheck": "tsc --noEmit",
22-
"clean": "rm -rf dist .next"
22+
"clean": "rm -rf dist .next",
23+
"publish:npm": "pnpm lint && pnpm typecheck && pnpm build && pnpm test && npm publish --access public"
2324
},
2425
"keywords": [
2526
"codebase",

0 commit comments

Comments
 (0)