Skip to content

Commit 9bd48d7

Browse files
committed
Update release process
1 parent 02c4dcd commit 9bd48d7

File tree

4 files changed

+6
-33
lines changed

4 files changed

+6
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
lib/*.js
44
*~
5+
package-lock.json

Makefile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,3 @@ serve:
3737
rm -f .pidfile.pid; \
3838
sleep 0.1; \
3939
done
40-
41-
#### Release process
42-
# 1) commit everything
43-
# 2) amend version in package.json
44-
# 3) run 'make tag' and run suggested 'git push' variants
45-
# 4) run 'npm publish'
46-
47-
RVER:=$(shell grep "version" package.json|tr '\t"' ' \t'|cut -f 4)
48-
VER:=$(shell ./VERSION-GEN)
49-
50-
.PHONY: tag
51-
tag: all
52-
git commit $(TAG_OPTS) package.json Changelog -m "Release $(RVER)"
53-
git tag v$(RVER) -m "Release $(RVER)"
54-
@echo ' [*] Now run'
55-
@echo 'git push; git push --tag'

VERSION-GEN

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,10 @@
3333
"repository": {
3434
"type": "git",
3535
"url": "https://github.com/sockjs/sockjs-node.git"
36+
},
37+
"scripts": {
38+
"version": "make build && git add Changelog",
39+
"postversion": "npm publish",
40+
"postpublish": "git push origin --all && git push origin --tags"
3641
}
3742
}

0 commit comments

Comments
 (0)