forked from minichate/ember-cli-conditional-compile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (19 loc) · 634 Bytes
/
Makefile
File metadata and controls
22 lines (19 loc) · 634 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
REMOTE=origin
# Utility target for checking required parameters
guard-%:
@if [ "$($*)" = '' ]; then \
echo "Missing required $* variable."; \
exit 1; \
fi;
release: guard-VERSION
@if [ "$$(git rev-parse --abbrev-ref HEAD)" != "master" ]; then \
echo "You must be on master to update the version"; \
exit 1; \
fi;
sed -i "" -e 's/"version": ".*/"version": "$(VERSION)",/' package.json
git add ./package.json
git commit ./package.json -m 'Bump version to $(VERSION)'
git tag release/$(VERSION) -m 'ember-cli-conditional-compile $(VERSION) - $(DATE)'
git push $(REMOTE) --tags
git push $(REMOTE) master
npm publish