@@ -42,48 +42,6 @@ cdn_release()
4242 success " $NPM_NAME ($1 ) uploaded to cdn"
4343}
4444
45- bower_release ()
46- {
47- # Check if tag exists
48- TAG_NAME=" v$VERSION "
49- TAG_EXISTS=$( git tag -l " $TAG_NAME " )
50-
51- if [ ! -z " $TAG_EXISTS " ]; then
52- verbose " There is already a tag $TAG_EXISTS in git. Skipping git deploy."
53- else
54- verbose " Deploying $VERSION to git"
55-
56- LAST_COMMIT=$( git log -1 --pretty=%B)
57- grep -v -e ' ^build$' -e ' ^build/$' .gitignore > /tmp/.gitignore
58- mv /tmp/.gitignore .gitignore
59- git add --force build/*
60- git commit -am " $TAG_NAME "
61- git tag " $TAG_NAME " -m " $LAST_COMMIT "
62- git push origin $TAG_NAME
63- success " $NPM_NAME version ready for bower"
64- fi
65- }
66-
67- npm_release ()
68- {
69- verbose " Checking if version $1 of $NPM_NAME is already available in npm…"
70-
71- NPM_EXISTS=$( npm info -s $NPM_NAME @$1 version)
72-
73- if [ ! -z " $NPM_EXISTS " ] && [ " $NPM_EXISTS " == " $1 " ]; then
74- verbose " There is already a version $NPM_EXISTS in npm. Skipping npm publish…"
75- else
76- if [ ! -z " $STABLE " ]; then
77- verbose " Deploying $1 to npm"
78- npm publish
79- else
80- verbose " Deploying $1 to npm with tag $NPM_TAG "
81- npm publish --tag " $NPM_TAG "
82- fi
83- success " $NPM_NAME uploaded to npm registry"
84- fi
85- }
86-
8745# Test
8846yarn test
8947yarn test:e2e
@@ -94,10 +52,7 @@ rm -f build/*.js
9452# Build & Release Webpack Bundle
9553yarn dist build
9654git checkout -b dist
97- bower_release
98- new_line
9955cdn_release " $VERSION "
10056new_line
101-
10257git checkout master
10358git branch -D dist
0 commit comments