@@ -42,48 +42,6 @@ cdn_release()
42
42
success " $NPM_NAME ($1 ) uploaded to cdn"
43
43
}
44
44
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
-
87
45
# Test
88
46
yarn test
89
47
yarn test:e2e
@@ -94,10 +52,7 @@ rm -f build/*.js
94
52
# Build & Release Webpack Bundle
95
53
yarn dist build
96
54
git checkout -b dist
97
- bower_release
98
- new_line
99
55
cdn_release " $VERSION "
100
56
new_line
101
-
102
57
git checkout master
103
58
git branch -D dist
0 commit comments