@trkyshorty/node-lzf 1.2.0 → 1.3.1

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 CHANGED
@@ -25,8 +25,13 @@ from source via `node-gyp-build` (requires a C++ toolchain).
25
25
 
26
26
  Prebuilds are produced by the `prebuild` GitHub Actions workflow
27
27
  (`npm run prebuild` runs `prebuildify --napi --strip` for the current
28
- platform). Before `npm publish`, download the merged `prebuilds` artifact
29
- from the workflow run and place it in the package root as `prebuilds/`.
28
+ platform). Releases are fully automatic: bump `version` in `package.json`
29
+ and push to `master`. If that version is not on npm yet, the workflow builds
30
+ and tests every platform, publishes the package with the merged `prebuilds/`
31
+ via npm trusted publishing (with provenance) and tags the commit
32
+ `v<version>`. Pushes that keep the version publish nothing; a manual run
33
+ always builds and tests. A local `npm publish` is refused (`prepublishOnly`),
34
+ so stale local `prebuilds/` can never reach the registry.
30
35
 
31
36
  ### Usage
32
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trkyshorty/node-lzf",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
4
4
  "description": "lzf compression module for nodejs (Topface/node-lzf fork)",
5
5
  "keywords": [
6
6
  "lzf",
@@ -40,6 +40,7 @@
40
40
  ],
41
41
  "scripts": {
42
42
  "install": "node-gyp-build",
43
+ "prepublishOnly": "node -e \"if (!process.env.GITHUB_ACTIONS) { console.error('Refusing to publish locally: the prebuild workflow publishes releases. Bump the version and push to master.'); process.exit(1); }\"",
43
44
  "prebuild": "prebuildify --napi --strip",
44
45
  "test": "node --test test/test.js",
45
46
  "bench": "node benchmark/benchmark.js"