# `@napi-rs/package-template` ![https://github.com/napi-rs/package-template/actions](https://github.com/napi-rs/package-template/workflows/CI/badge.svg) > Template project for writing node package with napi-rs. ## Requirement - Install latest `Rust` - Install `NodeJS@8.9+` which supported `N-API` - Install `yarn@1.x` ## Test in local - yarn - yarn build - yarn test And you will see: ```bash $ ava --verbose ✔ sync function from native code ✔ sleep function from native code (201ms) ─ 2 tests passed ✨ Done in 1.12s. ``` ## Release package 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.