From 88daebba3a8b079c30bcd4b29681cf32456919ec Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Sat, 30 Sep 2023 22:49:00 -0700 Subject: [PATCH] add release scripts --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b06cda..c89fb16 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,10 @@ "cov": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -R test/main.cjs", "doc": "jsdoc2md -f tmp/kiwi.js -m none -g none > docs/Kiwi.md && node scripts/docs-update-headings.js && prettier docs/Kiwi.md --write", "lint": "prettier . --check", - "bench": "node bench/main.cjs" + "bench": "node bench/main.cjs", + "version": "npm run clean && npm run build && npm test && npm run bench", + "release:patch": "npm version patch -m 'v%s' && npm publish && git push --follow-tags", + "release:minor": "npm version minor -m 'v%s' && npm publish && git push --follow-tags", + "release:major": "npm version major -m 'v%s' && npm publish && git push --follow-tags" } }