From b1880f1038ccfbc61d66cd88a78a1dce2185c8e3 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 25 Feb 2020 11:37:16 +0100 Subject: [PATCH 1/2] chore: Use release-it for releases --- package.json | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e4bbaa..167bb93 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,24 @@ "test": "npm run lint && npm run unit", "coverage": "nyc --reporter=lcov tape test.js", "test:ci": "npm run lint && npm run coverage", - "license-checker": "license-checker --production --onlyAllow='MIT;ISC;BSD-3-Clause;BSD-2-Clause'" + "license-checker": "license-checker --production --onlyAllow='MIT;ISC;BSD-3-Clause;BSD-2-Clause'", + "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it" + }, + "release-it": { + "github": { + "release": true + }, + "git": { + "tagName": "v${version}" + }, + "hooks": { + "before:init": [ + "npm run test" + ] + }, + "npm": { + "publish": true + } }, "pre-commit": [ "test" @@ -44,6 +61,7 @@ "nyc": "^15.0.0", "pre-commit": "^1.2.2", "pump": "^3.0.0", + "release-it": "^12.6.1", "snazzy": "^8.0.0", "standard": "^14.3.1", "tape": "^4.13.0", From ebf2adc970a55f089090127d9253755ab14416db Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 25 Feb 2020 12:06:47 +0100 Subject: [PATCH 2/2] chore: Disable metrics release-it --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 167bb93..6639fb7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "coverage": "nyc --reporter=lcov tape test.js", "test:ci": "npm run lint && npm run coverage", "license-checker": "license-checker --production --onlyAllow='MIT;ISC;BSD-3-Clause;BSD-2-Clause'", - "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it" + "release": "read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --disable-metrics" }, "release-it": { "github": {