Skip to content

Commit

Permalink
Use exact working version for this fork for package.json resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderattar committed Mar 29, 2024
1 parent 8aa991b commit 99e7e3d
Show file tree
Hide file tree
Showing 23 changed files with 383 additions and 1,892 deletions.
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

0 comments on commit 99e7e3d

Please sign in to comment.