diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22dcfb51..5dd4e76b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -244,12 +244,15 @@ jobs: echo "::notice::skip wickra@$version (already on npm)" exit 0 fi - npm publish --access public + # --ignore-scripts so any leftover prepublish hooks (which would + # otherwise try to republish the already-published platform + # subpackages) can't sabotage the main publish. + npm publish --access public --ignore-scripts rc=$? if [ "$rc" -ne 0 ]; then echo "::warning::first attempt failed (rc=$rc); retrying after 30s" sleep 30 - npm publish --access public + npm publish --access public --ignore-scripts rc=$? fi exit $rc diff --git a/bindings/node/package.json b/bindings/node/package.json index 82edecdc..7d2f10f2 100644 --- a/bindings/node/package.json +++ b/bindings/node/package.json @@ -54,7 +54,6 @@ "build": "napi build --platform --release", "build:debug": "napi build --platform", "artifacts": "napi artifacts", - "prepublishOnly": "napi prepublish -t npm", "universal": "napi universal", "version": "napi version", "test": "node --test __tests__/"