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:
authorForrest L Norvell <forrest@npmjs.com>2014-08-15 06:15:30 +0400
committerForrest L Norvell <forrest@npmjs.com>2014-08-15 06:39:39 +0400
commit5abce1bd390ffec231a77286139f7800f23d9d8f (patch)
tree64a69c795c2aec9bf2b6bddfd4385882a2745a0a /Makefile
parentf23f1d8e8f86ec1b7ab8dad68250bccaa67d61b1 (diff)
build: explicitly push to a branch
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)