claude-code-templates 1.28.14 → 1.28.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CLAUDE.md CHANGED
@@ -148,16 +148,33 @@ python scripts/generate_components_json.py
148
148
  # 2. Run tests
149
149
  npm test
150
150
 
151
- # 3. Bump version
152
- npm version patch # 1.20.2 -> 1.20.3
151
+ # 3. Check current npm version and align local version
152
+ npm view claude-code-templates version # check latest on registry
153
+ # Edit package.json version to be one patch above the registry version
153
154
 
154
- # 4. Publish
155
+ # 4. Commit version bump and push
156
+ git add package.json && git commit -m "chore: Bump version to X.Y.Z"
157
+ git push origin main
158
+
159
+ # 5. Publish to npm (requires granular access token with "Bypass 2FA" enabled)
160
+ npm config set //registry.npmjs.org/:_authToken=YOUR_GRANULAR_TOKEN
155
161
  npm publish
162
+ npm config delete //registry.npmjs.org/:_authToken # always clean up after
163
+
164
+ # 6. Tag the release
165
+ git tag vX.Y.Z && git push origin vX.Y.Z
156
166
 
157
- # 5. Deploy website
167
+ # 7. Deploy website
158
168
  vercel --prod
159
169
  ```
160
170
 
171
+ **npm Publishing Notes:**
172
+ - Classic npm tokens were revoked Dec 2025. Use **granular access tokens** from [npmjs.com/settings/~/tokens](https://www.npmjs.com/settings/~/tokens)
173
+ - The token must have **Read and Write** permissions for `claude-code-templates` and **"Bypass 2FA"** enabled
174
+ - Always remove the token from npm config after publishing (`npm config delete`)
175
+ - The local `package.json` version may drift from npm if published from CI — always check `npm view claude-code-templates version` first
176
+ - Never hardcode or commit tokens
177
+
161
178
  ## API Architecture
162
179
 
163
180
  ### Critical Endpoints