node-red-contrib-rn-combine.../Makefile

23 lines
488 B
Makefile
Raw Permalink Normal View History

2023-10-02 22:52:48 +03:00
# Target to increment the version
bump-version:
@jq '.version |= (. | split(".") | .[2] |= (tonumber + 1 | tostring) | join("."))' package.json > package.json.tmp
@mv package.json.tmp package.json
# Target to clean old tgz files
clean:
@rm -f *.tgz
git-commit:
$(eval NEW_VERSION := $(shell jq -r '.version' package.json))
@git add .
@git commit -m "Bump version to $(NEW_VERSION)"
2023-10-02 22:53:53 +03:00
@git push origin
2023-10-02 22:52:48 +03:00
# Target to execute npm pack
pack: clean bump-version git-commit
npm pack