File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 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);")
1111major=$( node -e " console.log(require('./package.json').version.split('.')[0]);" )
1212
1313# 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+
1516# if not v1 add major version to the tag e.g. latest-v2
17+ tag=$baseTag
1618if [ $major -ne 1 ]; then tag=$tag -v$major ; fi
1719echo $tag
1820
@@ -34,7 +36,10 @@ for path in `ls $dist/plotly*`; do
3436 fi
3537
3638 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
3843done
3944
4045# copy topojson files over to the sync folder
You can’t perform that action at this time.
0 commit comments