@trkyshorty/node-lzf 1.3.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
@@ -30,7 +30,8 @@ and push to `master`. If that version is not on npm yet, the workflow builds
30
30
  and tests every platform, publishes the package with the merged `prebuilds/`
31
31
  via npm trusted publishing (with provenance) and tags the commit
32
32
  `v<version>`. Pushes that keep the version publish nothing; a manual run
33
- always builds and tests.
33
+ always builds and tests. A local `npm publish` is refused (`prepublishOnly`),
34
+ so stale local `prebuilds/` can never reach the registry.
34
35
 
35
36
  ### Usage
36
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trkyshorty/node-lzf",
3
- "version": "1.3.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"