binpub is a utility which makes republishing binaries easier.
It is extremely fragile right now, and WILL automatically PUSH git repos and PUBLISH npm packages (which is super dangerous, so be warned...).
Steps to setup overarching package:
yarn global add binpub
- Create a repo on github, with the desire package name, on the git account that is current setup on your machine (the
git config user.name
account). - Create a folder on your machine with the package name
- Navigate to inside that folder
git init
git remote add origin git@github.com:{gitUserName}/{packageName}.git
git push -u origin master
binpub init {packageName} --bins {primaryExecutableName} --addFiles {addFileName1} --addFiles {addFileName2}
Steps to add binaries:
binpub add {packageName}
Requirements:
- npm has to be setup to be able to publish (npm adduser).
- git has to be setup to be able to push via ssh, and
git config user.name
and git config user.email
must both be set up (git config user.name 'preferred-user-name'
).