-
-
Save dashed/8444826 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm publish with goodies | |
# `np` with an optional argument `patch`/`minor`/`major`/`<version>` | |
# defaults to `patch` | |
np() { | |
trash node_modules &>/dev/null; | |
git pull --rebase && \ | |
npm install && \ | |
npm test && \ | |
npm version ${1:=patch} && \ | |
npm publish && \ | |
git push --follow-tags | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment