From 7041503fbe0a7edc7dee936b491af2aa343d7f2d Mon Sep 17 00:00:00 2001 From: Ben Yap Date: Tue, 25 Jan 2022 18:42:21 +1100 Subject: [PATCH] tooling: release with correct version --- .release-it.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.release-it.js b/.release-it.js index 6800c42..0caf417 100644 --- a/.release-it.js +++ b/.release-it.js @@ -12,6 +12,10 @@ module.exports = { commit: true, commitMessage: "chore(release): release ${version}", }, + hooks: { + "before:init": ["yarn lint"], + "after:bump": ["yarn build", "yarn make"], + }, plugins: { "@release-it/bumper": { in: "package.json", diff --git a/package.json b/package.json index f55ecbc..eb5b0fc 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "make": "rimraf dist/* && yarn make:mac && yarn make:win", "make:mac": "electron-builder build --mac --x64", "make:win": "electron-builder build --win --x64", - "release": "yarn format && yarn lint && yarn build && yarn make && env-cmd release-it" + "release": "env-cmd release-it" }, "dependencies": { "@headlessui/react": "1.4.3",