File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,19 @@ test-all: install
8888
8989# Publish updated integrations
9090publish :
91- @for integration in $(shell $(OPERATIONS_PREFIX ) list-new-releases) ; do \
91+ ifneq ($(shell git rev-parse --abbrev-ref HEAD) ,master)
92+ $(error Publish is just allowed from master)
93+ endif
94+
95+ $(eval export INTEGRATIONS := $(shell $(OPERATIONS_PREFIX)list-new-releases))
96+ ifneq ($(INTEGRATIONS ) ,)
97+ @echo Publishing $(INTEGRATIONS)
98+ @for integration in $(INTEGRATIONS); do \
9299 npm publish integrations/$$integration; \
93100 done
101+ else
102+ @echo Nothing to publish
103+ endif
94104
95105.PHONY : publish
96106
Original file line number Diff line number Diff line change 66## License
77
88Released under the [ MIT license] ( LICENSE ) .
9+
10+
11+ ## Pull Requests and releases
12+
13+ Make sure your PR includes the new version in ` package.json ` . When the PR gets
14+ merged, it will automatically be published.
Original file line number Diff line number Diff line change 11{
22 "name" : " @segment/analytics.js-integration-nielsen-dcr" ,
33 "description" : " The Nielsen DCR analytics.js integration." ,
4- "version" : " 1.0.1 " ,
4+ "version" : " 1.0.2 " ,
55 "keywords" : [
66 " analytics.js" ,
77 " analytics.js-integration" ,
You can’t perform that action at this time.
0 commit comments