camstreamerlib 4.0.18 → 4.0.19

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.
Files changed (2) hide show
  1. package/README.md +7 -9
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -198,17 +198,15 @@ try {
198
198
 
199
199
  ### Publishing to npm repository
200
200
 
201
- 1. Update version in package.json and push it
202
- 2. Create git tag e.g. v1.2.4
201
+ Run `npm run publishPackage`.
203
202
 
204
- - `git tag v1.2.4`
205
- - `git push --tags`
203
+ It will:
206
204
 
207
- 3. Publish new version to npm
208
-
209
- - `npm publish ./dist`
210
-
211
- 4. Edit GitHub release form.
205
+ - Require npm user `camstreamer` (prompts login if needed).
206
+ - Run `lint`, `pretty:check`, and `build`.
207
+ - Publish from `master` as `latest`.
208
+ - Publish from other branches as `dev-*` (or `dev`).
209
+ - Refuse `latest` publish if the same version is already on npm or if `package.json` version is not committed.
212
210
 
213
211
  ### Preparing a package to upload to CamScripter
214
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.18",
3
+ "version": "4.0.19",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -43,6 +43,7 @@
43
43
  "build:cjs": "tsc --project tsconfig.cjs.json",
44
44
  "build:esm": "tsc --project tsconfig.esm.json",
45
45
  "copyPackage": "cp -f LICENSE dist/ && cp -f README.md dist/ && cp -f package.json dist/",
46
+ "publishPackage": "./publish.sh",
46
47
  "lint": "eslint \"src/**/*.ts\"",
47
48
  "lint:fix": "eslint \"src/**/*.ts\" --fix",
48
49
  "pretty": "prettier --write \"./{{src,doc}/**/*.{ts,tsx,md},README.md}\"",