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:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5041faef..540e2da05 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
SHELL = bash
PUBLISHTAG = $(shell node scripts/publish-tag.js)
+BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
markdowns = $(shell find doc -name '*.md' | grep -v 'index') README.md
@@ -178,7 +179,7 @@ tag:
publish: link doc
@git push origin :v$(shell npm -v) 2>&1 || true
git clean -fd &&\
- git push origin &&\
+ git push origin $(BRANCH) &&\
git push origin --tags &&\
npm publish --tag=$(PUBLISHTAG)