From 54e42fa4c371dd685aef1bc6bdaa1fbd152d7914 Mon Sep 17 00:00:00 2001 From: Michael Neeley Date: Fri, 1 Mar 2024 18:33:37 -0500 Subject: [PATCH] add minor and major bump types --- web-embeds/package.json | 2 ++ web-embeds/scripts/bump.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web-embeds/package.json b/web-embeds/package.json index d9d9e70e..84c084e0 100644 --- a/web-embeds/package.json +++ b/web-embeds/package.json @@ -61,6 +61,8 @@ "build": "node scripts/build.js", "test": "craco test", "bump": "./scripts/bump.sh && npm publish && npm version 0.0.1 && npm run flush-cdn", + "bump:minor": "./scripts/bump.sh minor && npm publish && npm version 0.0.1 && npm run flush-cdn", + "bump:major": "./scripts/bump.sh major && npm publish && npm version 0.0.1 && npm run flush-cdn", "format": "prettier --write .", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", "flush-cdn": "./flush-cdn-cache.sh" diff --git a/web-embeds/scripts/bump.sh b/web-embeds/scripts/bump.sh index e963fa9e..8d725083 100755 --- a/web-embeds/scripts/bump.sh +++ b/web-embeds/scripts/bump.sh @@ -1,3 +1,7 @@ +TYPE=$1 +if [ -z "$TYPE" ]; then + TYPE="patch" +fi VERSION="$(npm show @apollosproject/apollos-embeds version)" -npm version $VERSION -npm version patch +npm version "$VERSION" +npm version "$TYPE"