I publish an npm package that uses C++ code using nan. How can I double check that my package can be installed/imported on Linux, macOS and Windows with Node 14+ after I run npm publish
?
Asked
Active
Viewed 21 times
0

Boris Verkhovskiy
- 14,854
- 11
- 100
- 103
-
Could you please share your workflow? – Andrii Bodnar Jan 09 '23 at 16:41
-
@AndriiBodnar https://github.com/curlconverter/curlconverter/tree/master/.github/workflows – Boris Verkhovskiy Jan 09 '23 at 16:45
-
The first thoughts - having separate jobs (ubuntu, macos, windows) that will install your package as a local module https://stackoverflow.com/questions/8088795/installing-a-local-module-using-npm and then a separate job to publish if all the previous jobs were successful. – Andrii Bodnar Jan 09 '23 at 16:56