File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,6 @@ check-working-tree:
77
77
@[ -z " ` git status -s` " ] && \
78
78
echo " Stopping publish. There are change to commit or discard." || echo " Worktree is clean."
79
79
80
- changelog :
81
- @echo " [Updating CHANGELOG.md $( CURRENT_VERSION) > $( VERSION) ]"
82
- python ./scripts/changelog.py -a $(VERSION ) > CHANGELOG.md
83
-
84
80
compile :
85
81
@echo " [Compiling source]"
86
82
$(BABEL ) src --out-dir lib
@@ -89,8 +85,17 @@ build: compile
89
85
@echo " [Building dists]"
90
86
@npx webpack --config ./scripts/webpack.dist.config.js
91
87
92
- release-commit :
88
+ pre- release-commit :
93
89
git commit --allow-empty -m " Release v$( VERSION) ."
90
+
91
+ changelog :
92
+ @echo " [Updating CHANGELOG.md $( CURRENT_VERSION) > $( VERSION) ]"
93
+ python ./scripts/changelog.py -a $(VERSION ) > CHANGELOG.md
94
+
95
+ update-package-version :
96
+ @cat package.json | jq ' .version=$(VERSION)' > tmp; mv -f tmp package.json
97
+
98
+ release-commit : pre-release-commit update-package-version changelog
94
99
@git add .
95
100
@git commit --amend -m " ` git log -1 --format=%s` "
96
101
@@ -102,7 +107,7 @@ publish-version: release-commit release-tag
102
107
git push $(REMOTE ) " $( BRANCH) " " v$( VERSION) "
103
108
npm publish
104
109
105
- pre-publish : clean changelog
110
+ pre-publish : clean
106
111
pre-build : deps-project tests-single-run build
107
112
108
113
publish : check-working-tree pre-publish pre-build publish-version publish-finished
You can’t perform that action at this time.
0 commit comments