Skip to content

Commit ffd0d61

Browse files
committed
chore(makefile): add release and release-dry targets
1 parent 6a1c901 commit ffd0d61

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ ISTANBUL := $(NODE_BIN)/istanbul
2727
MOCHA := $(NODE_BIN)/mocha
2828
_MOCHA := $(NODE_BIN)/_mocha
2929
UNLEASH := $(NODE_BIN)/unleash
30+
CONVENTIONAL_RECOMMENDED_BUMP := $(NODE_BIN)/conventional-recommended-bump
3031

3132

3233
#
@@ -71,6 +72,17 @@ githooks: ## Install githooks
7172
@ln -s $(GIT_HOOK_SRC) $(GIT_HOOK_DEST)
7273

7374

75+
.PHONY: release-dry
76+
release-dry: $(NODE_MODULES) ## Dry run of `release` target
77+
$(UNLEASH) -d --type=$(shell $(CONVENTIONAL_RECOMMENDED_BUMP) -p angular)
78+
79+
80+
.PHONY: release
81+
release: $(NODE_MODULES) ## Versions, tags, and updates changelog based on commit messages
82+
$(UNLEASH) --type=$(shell $(CONVENTIONAL_RECOMMENDED_BUMP) -p angular) --no-publish
83+
$(NPM) publish
84+
85+
7486
.PHONY: lint
7587
lint: $(NODE_MODULES) ## Run lint and style checks
7688
@$(ESLINT) $(ALL_FILES)

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@
3737
"devDependencies": {
3838
"bunyan": "^1.8.10",
3939
"chai": "^4.2.0",
40+
"conventional-changelog-angular": "^5.0.0",
41+
"conventional-recommended-bump": "^4.0.0",
4042
"coveralls": "^3.0.3",
4143
"eslint": "^5.16.0",
4244
"istanbul": "^0.4.5",
4345
"mkdirp": "^0.5.1",
4446
"mocha": "^6.1.4",
4547
"restify": "^8.3.1",
46-
"restify-clients": "^2.6.4"
48+
"restify-clients": "^2.6.4",
49+
"unleash": "^2.0.1"
4750
},
4851
"optionalDependencies": {
4952
"safe-json-stringify": "^1.0.4"

0 commit comments

Comments
 (0)