From addf402eb44fb865ce052e1ab6b815ec2b392759 Mon Sep 17 00:00:00 2001 From: Mark Skelton Date: Tue, 18 Jan 2022 15:46:31 -0600 Subject: [PATCH] Fix release --- package.json | 3 ++- scripts/release.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 scripts/release.sh diff --git a/package.json b/package.json index 8b0c85f..fd6358a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "format": "prettier --write .", "lint": "eslint .", "test": "jest", - "ts": "tsc -b" + "ts": "tsc -b", + "release": "./scripts/release.sh" }, "devDependencies": { "@babel/core": "^7.16.7", diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..55f5b61 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -eo pipefail + +if [[ -z "${CI}" ]]; then + echo "Releasing is only allowed from CI." + exit 1 +fi + +yarn tsc -p tsconfig.build.json +yarn changeset publish