Skip to content

Commit 4cb8984

Browse files
authored
Update publish step (#24)
* Republish nielsen dcr * Update publish step
1 parent 8939eba commit 4cb8984

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,19 @@ test-all: install
8888

8989
# Publish updated integrations
9090
publish:
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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
## License
77

88
Released 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.

integrations/nielsen-dcr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

0 commit comments

Comments
 (0)