Skip to content

Commit ad0ef19

Browse files
committed
Allow type of version bump to be provided to deploy script
1 parent 97306fe commit ad0ef19

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"uuid": "^3.2.1"
2424
},
2525
"scripts": {
26-
"deploy:patch": "npm run build && npm run clean:gh-pages && npm run gh-pages-populate && sh ./scripts/deploy.sh",
26+
"deploy": "npm run build && npm run clean:gh-pages && npm run gh-pages-populate && sh ./scripts/deploy.sh patch",
27+
"deploy:patch": "npm run deploy patch",
28+
"deploy:minor": "npm run deploy minor",
2729
"gh-pages-populate": "copyfiles 'build/**/*' gh-pages/ --up 1",
2830
"clean:gh-pages": "rimraf gh-pages/*",
2931
"clean:glslify": "rimraf ./src/shaders/*.generated.ts",

scripts/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -e
33

4-
VERSION=$(npm version patch)
4+
VERSION=$(npm version $1)
55
VERSION=$(echo $VERSION | cut -c 2-)
66

77
cd gh-pages

0 commit comments

Comments
 (0)