@napi-rs/package-templateTemplate project for writing node package with napi-rs.
RustNodeJS@8.9+ which supported N-APIyarn@1.xAnd you will see:
$ ava --verbose
✔ sync function from native code
✔ sleep function from native code (201ms)
─
2 tests passed
✨ Done in 1.12s.
Ensure you have set you NPM_TOKEN in Github project setting.
In Settings -> Secrets, add NPM_TOKEN into it.
When you want release package:
yarn version [xxx]
git push --follow-tags
Github actions will do the rest job for you.