Skip to content

Commit

Permalink
Update release process
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Oct 12, 2017
1 parent 02c4dcd commit 9bd48d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
lib/*.js
*~
package-lock.json
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,3 @@ serve:
rm -f .pidfile.pid; \
sleep 0.1; \
done

#### Release process
# 1) commit everything
# 2) amend version in package.json
# 3) run 'make tag' and run suggested 'git push' variants
# 4) run 'npm publish'

RVER:=$(shell grep "version" package.json|tr '\t"' ' \t'|cut -f 4)
VER:=$(shell ./VERSION-GEN)

.PHONY: tag
tag: all
git commit $(TAG_OPTS) package.json Changelog -m "Release $(RVER)"
git tag v$(RVER) -m "Release $(RVER)"
@echo ' [*] Now run'
@echo 'git push; git push --tag'
17 changes: 0 additions & 17 deletions VERSION-GEN

This file was deleted.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"repository": {
"type": "git",
"url": "https://github.com/sockjs/sockjs-node.git"
},
"scripts": {
"version": "make build && git add Changelog",
"postversion": "npm publish",
"postpublish": "git push origin --all && git push origin --tags"
}
}

0 comments on commit 9bd48d7

Please sign in to comment.