Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/guard against reinstantiating connection #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions Publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@ 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
```

4. Download the `all-prebuilds` artifact, and extract as a `prebuilds` folder in the root of the repository

5. 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:
2. Then, on each of MacOS, Windows, Linux, do:
```
git clone https://github.com/node-hid/node-hid.git
cd node-hid
Expand All @@ -29,4 +13,12 @@ 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
npm run prebuild # build all the versions
npm run prebuild-upload <GH_TOKEN> # upload all the versions using github token
```

3. And then on master dev box:
```
npm run clean # clean out directory
npm publish # update npmjs, be sure to have Authy app for OTP code
```
Loading
Loading