File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ version=$(node -e "console.log(require('./package.json').version);")
11
11
major=$( node -e " console.log(require('./package.json').version.split('.')[0]);" )
12
12
13
13
# read tag either latest or rc
14
- tag=$( node -e " var rc = require('./package.json').version.split('-')[1]; console.log(rc ? rc.split('.')[0] : 'latest');" )
14
+ baseTag=$( node -e " var rc = require('./package.json').version.split('-')[1]; console.log(rc ? rc.split('.')[0] : 'latest');" )
15
+
15
16
# if not v1 add major version to the tag e.g. latest-v2
17
+ tag=$baseTag
16
18
if [ $major -ne 1 ]; then tag=$tag -v$major ; fi
17
19
echo $tag
18
20
@@ -34,7 +36,10 @@ for path in `ls $dist/plotly*`; do
34
36
fi
35
37
36
38
cp $path " $sync /${name} -${version} .$ext "
37
- cp $path " $sync /${name} -${tag} .$ext "
39
+
40
+ if [ $baseTag = " latest" ]; then
41
+ cp $path " $sync /${name} -${tag} .$ext "
42
+ fi
38
43
done
39
44
40
45
# copy topojson files over to the sync folder
You can’t perform that action at this time.
0 commit comments