1 Star 0 Fork 0

Sunny / node-hid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Publishing.md 875 Bytes
一键复制 编辑 原始数据 按行查看 历史
Julian Waller 提交于 2023-11-26 00:40 . feat: use pkg-prebuilds (#507)

How to publish node-hid

  1. First, make sure version is bumped to new version. (if code change)

  2. Push changes to Github, and wait for the prebuild workflow to complete

  3. Run:

npm run clean # clean out directory
  1. Download the all-prebuilds artifact, and extract as a prebuilds folder in the root of the repository

  2. Run:

npm publish  # update npmjs, be sure to have Authy app for OTP code

If desired, manual testing can be down on each of MacOS, Windows, Linux, do:

git clone https://github.com/node-hid/node-hid.git
cd node-hid
npm run distclean                 # if not a fresh checkout
npm run prepublishOnly            # get the hidapi submodule
npm install --build-from-source   # rebuilds the C code
npm run showdevices               # simple test
node ./src/test-blink1.js         # simple test
1
https://gitee.com/ztes/node-hid.git
git@gitee.com:ztes/node-hid.git
ztes
node-hid
node-hid
master

搜索帮助