@per_moeller/asterisk-ari 1.0.30 → 1.0.31
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 +14 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -292,3 +292,17 @@ Full TypeScript types for all 30+ event types:
|
|
|
292
292
|
## License
|
|
293
293
|
|
|
294
294
|
MIT
|
|
295
|
+
|
|
296
|
+
## Releasing
|
|
297
|
+
|
|
298
|
+
Releases are automated. Every pull request to `master` must raise `version` in
|
|
299
|
+
`package.json`; two required checks enforce it (`build` and `version-bump`), and
|
|
300
|
+
`version-bump` also rejects a version that is already on the npm registry.
|
|
301
|
+
|
|
302
|
+
On merge, `.github/workflows/publish.yml` publishes the new version to npm and
|
|
303
|
+
creates a matching `v<version>` release. It authenticates with npm trusted
|
|
304
|
+
publishing (OIDC), so no publish token is stored in the repository. A merge that
|
|
305
|
+
does not change the version publishes nothing.
|
|
306
|
+
|
|
307
|
+
Publishing from a workstation is refused: `prepublishOnly` runs a guard that
|
|
308
|
+
only lets `npm publish` proceed inside GitHub Actions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@per_moeller/asterisk-ari",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "Modern TypeScript ARI (Asterisk REST Interface) client with WebSocket reconnection and full API coverage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:run": "vitest run",
|
|
24
24
|
"lint": "eslint src/",
|
|
25
25
|
"format": "prettier --write src/",
|
|
26
|
-
"prepublishOnly": "npm run build"
|
|
26
|
+
"prepublishOnly": "node .github/scripts/ci-only-publish.mjs && npm run build"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"asterisk",
|