You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
330 B

  1. .PHONY: verify-tag release
  2. default: release
  3. verify-tag:
  4. ifndef TAG
  5. $(error TAG is undefined)
  6. endif
  7. release: verify-tag
  8. @ OLD_TAG=`git describe --abbrev=0 --tags` && \
  9. npm run minify && \
  10. replace "$${OLD_TAG/v/}" "$(TAG)" -- *.json README.md && \
  11. git commit -m "v$(TAG)" *.js *.json README.md && \
  12. git tag "v$(TAG)"