Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.11 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.11 KB

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:

  1. yarn global add binpub
  2. 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).
  3. Create a folder on your machine with the package name
  4. Navigate to inside that folder
  5. git init
  6. git remote add origin git@github.com:{gitUserName}/{packageName}.git
  7. git push -u origin master
  8. binpub init {packageName} --bins {primaryExecutableName} --addFiles {addFileName1} --addFiles {addFileName2}

Steps to add binaries:

  1. binpub add {packageName}

Steps for overarching repo to publish added binaries:

  1. git pull
  2. npm publish

Requirements:

  1. npm has to be setup to be able to publish (npm adduser).
  2. 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').