cemtrik-dependencies 1.1.0 → 1.1.2
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/README.md +47 -0
- package/dist/index.js +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -266,6 +266,53 @@ Storybook scripts live in `storybook/package.json`:
|
|
|
266
266
|
| `npm run generate-docs` | Generate Storybook docs |
|
|
267
267
|
| `npm run deploy` | Deploy Storybook to Firebase hosting |
|
|
268
268
|
|
|
269
|
+
## Publishing
|
|
270
|
+
|
|
271
|
+
Use this flow to publish a new version of the package safely from the repository root.
|
|
272
|
+
|
|
273
|
+
### 1. Confirm access
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
npm whoami
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
If npm requires 2FA for publishing, use a granular access token with `Bypass two-factor authentication` enabled and configure it locally for the session.
|
|
280
|
+
|
|
281
|
+
### 2. Verify the release candidate
|
|
282
|
+
|
|
283
|
+
```bash
|
|
284
|
+
npm run lint
|
|
285
|
+
npm test -- --runInBand
|
|
286
|
+
npm run build
|
|
287
|
+
npm publish --dry-run
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### 3. Bump the version
|
|
291
|
+
|
|
292
|
+
Use semantic versioning intentionally:
|
|
293
|
+
|
|
294
|
+
- `npm version patch` for bug fixes and non-breaking changes
|
|
295
|
+
- `npm version minor` for new backward-compatible features
|
|
296
|
+
- `npm version major` for breaking changes
|
|
297
|
+
|
|
298
|
+
### 4. Publish
|
|
299
|
+
|
|
300
|
+
```bash
|
|
301
|
+
npm publish
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### 5. Verify on npm
|
|
305
|
+
|
|
306
|
+
Confirm the new version on the package page:
|
|
307
|
+
|
|
308
|
+
https://www.npmjs.com/package/cemtrik-dependencies
|
|
309
|
+
|
|
310
|
+
Notes:
|
|
311
|
+
|
|
312
|
+
- Do not run `npm version` more than once for the same release.
|
|
313
|
+
- The published tarball comes from `dist/` only.
|
|
314
|
+
- Do not commit npm tokens or store them in the repository.
|
|
315
|
+
|
|
269
316
|
## License
|
|
270
317
|
|
|
271
318
|
Copyright 2024 Cemtrik. All rights reserved.
|