MetaMask / action-npm-publish

GitHub Action to publish to NPM
MIT License
8 stars 6 forks source link

Fix report script for unpublished packages #93

Closed Mrtenz closed 3 months ago

Mrtenz commented 3 months ago

pkdiff throws an error if the package is not published:

@ts-bridge/resolver
@ts-bridge/resolver@latest: downloading...
Error: Download failed: @ts-bridge/resolver@latest from registry: https://registry.npmjs.org/
    at /usr/local/lib/node_modules/pkdiff/src/compare.js:188:15

This makes it return with exit code 1, causing the publish to fail. As as simple workaround I've added || true, which always returns exit code 0.