mirror of
https://github.com/wharfkit/signing-request.git
synced 2026-07-21 16:03:29 +00:00
Add publish target
This commit is contained in:
@@ -27,6 +27,13 @@ ci-lint: node_modules
|
|||||||
node_modules:
|
node_modules:
|
||||||
yarn install --non-interactive --frozen-lockfile --ignore-scripts
|
yarn install --non-interactive --frozen-lockfile --ignore-scripts
|
||||||
|
|
||||||
|
.PHONY: publish
|
||||||
|
publish: | distclean node_modules
|
||||||
|
@git diff-index --quiet HEAD || (echo "Uncommitted changes, please commit first" && exit 1)
|
||||||
|
@git fetch origin && git diff origin/master --quiet || (echo "Changes not pushed to origin, please push first" && exit 1)
|
||||||
|
@yarn config set version-tag-prefix "" && yarn config set version-git-message "Version %s"
|
||||||
|
@yarn publish && git push && git push --tags
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf lib/ coverage/
|
rm -rf lib/ coverage/
|
||||||
|
|||||||
Reference in New Issue
Block a user