Skip to content

Instantly share code, notes, and snippets.

@jkrems
Last active November 13, 2015 22:10
Show Gist options
  • Save jkrems/8a586204fbb0523a2005 to your computer and use it in GitHub Desktop.
Save jkrems/8a586204fbb0523a2005 to your computer and use it in GitHub Desktop.
Make `npub` great again

npub publish [ <version> ]

Options:

  • -t/--test command - alternate test suite command. default: npm test
  • <version> - 1.2.3; or, for auto increments: patch, minor, major
  • If <version> is not specified, npub will try to deduce it from the Github PRs that were merged, using semver-minor style labels.
  1. Verify: No uncommitted changes
  2. Switch to release branch
  3. Pull with fast forward only from remote in package.json
  4. Add license headers if necessary
  5. Verify: No uncommitted changes
  6. Removes node_modules & runs npm install using publishConfig.registry if available
  7. Run the test suite
  8. Prepare changelog from Github API and/or commit log
  9. Open editor with temp change list
  10. Update package.json
  11. Commit changelog & package.json with version number & changelog
  12. Tag with the version number (vX.Y.Z)
  13. Ask for confirmation to continue
  14. Git push the branch and the tag
  15. Create a Github release
  16. npm publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment