Skip to content

Commit

Permalink
add minor and major bump types
Browse files Browse the repository at this point in the history
  • Loading branch information
redreceipt committed Mar 1, 2024
1 parent 35cb61c commit 54e42fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions web-embeds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 6 additions & 2 deletions web-embeds/scripts/bump.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 54e42fa

Please sign in to comment.