Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-07-12 20:02:19 +0400
committerisaacs <i@izs.me>2012-07-12 20:02:19 +0400
commitca69133ae5234bb3010f7d5ce2e621562ac1a6b4 (patch)
tree258218d7c0d33e87b200029111824546ee2978e6 /Makefile
parenteba69b51faa6371e4e4118ba667346992018086a (diff)
Using 'npm version' now. No need for 'make version'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2663075c6..96e3f37c0 100644
--- a/Makefile
+++ b/Makefile
@@ -101,16 +101,10 @@ man: $(cli_docs) $(api_docs)
test:
node cli.js test
-version: link
- git add package.json &&\
- git ci -m v$(shell npm -v)
-
publish: link doc
- @git tag -d v$(shell npm -v) || true
@git push origin :v$(shell npm -v) || true
@npm unpublish npm@$(shell npm -v) || true
git clean -fd
- git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
git push origin --tags &&\
npm publish &&\
npm tag npm@$(shell npm -v) $(shell npm -v | awk -F. '{print $$1 "." $$2}') &&\
@@ -131,6 +125,6 @@ release:
@bash scripts/release.sh
sandwich:
- @[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || echo "make it yourself"
+ @[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || echo "make it yourself" && exit 13
.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish release zip-publish