-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.sh
More file actions
39 lines (31 loc) · 865 Bytes
/
script.sh
File metadata and controls
39 lines (31 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Publish release type (patch, minor, major)
RELEASE_TYPE=$1
if [ \( "$RELEASE_TYPE" = "patch" \) -o \( "$RELEASE_TYPE" = "minor" \) -o \( "$RELEASE_TYPE" = "major" \) ]
then
# @webscale/cloud
echo "prepare @microdocs/cloud"
npm version $(VERSION)
# @microdocs/cloud-rest-client
echo "prepare @microdocs/cloud-rest-client"
cd microdocs-cloud-rest-client
npm version $(VERSION)
npm install
./node_modules/.bin/gulp test
./node_modules/.bin/gulp build
cd dist
npm link
cd ../../
# @microdocs/cloud-rest-client-node
echo "prepare @microdocs/cloud-rest-client-node"
cd microdocs-cloud-rest-client-node
npm version $(VERSION)
npm link @microdocs/cloud-rest-client
npm install
./node_modules/.bin/gulp test
./node_modules/.bin/gulp build
cd ..
else
echo "usage: script.sh <patch,minor,major>"
exit 1
fi