From 7824a8f19a25c4346b1fb8f707ab813f71cd112b Mon Sep 17 00:00:00 2001 From: Jonathan Laukenmann Date: Fri, 25 Mar 2022 18:32:06 +0100 Subject: [PATCH] feat: add auto publish functionality --- package.json | 2 +- scripts/release.mjs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 830b687..fa72625 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "billbee-types", - "version": "1.6.1", + "version": "1.7.0", "description": "billbee types", "main": "index.ts", "scripts": { diff --git a/scripts/release.mjs b/scripts/release.mjs index e05593c..ae3ee5d 100755 --- a/scripts/release.mjs +++ b/scripts/release.mjs @@ -55,6 +55,7 @@ if (!choices.includes(versionType)) { await $`yarn version --new-version ${next} --no-git-tag-version`; await $`git add package.json && git commit --amend --no-edit`; await $`git push --force-with-lease`; + await $`npm publish`; await $`gh release create v${next}`; console.log('');