File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ if test -n "${REPO_TAG-}" -o -n "${tag-}"; then
91
91
next=" ${version% -* } -${tag} .${time} .${REPO_SHA} " # version trims anything after -
92
92
npm version " ${next} " --git-tag-version=false
93
93
echo " publishing branch ${branch} to tag ${tag} with version ${next} ..."
94
- npm publish --access public --tag " ${tag} "
94
+ npm publish --access public --tag " ${tag} " || {
95
+ echo " trying again in 60s..."
96
+ sleep 60
97
+ npm publish --access public --tag " ${tag} "
98
+ }
95
99
96
100
# publish package.json
97
101
else
@@ -128,7 +132,11 @@ if test -n "${BEVRY_CDN_TOKEN-}"; then
128
132
npm version " ${cdn} " --git-tag-version=false
129
133
130
134
echo " publishing to tag ${tag} with version ${cdn} ..."
131
- npm publish --access public --tag " ${tag} "
135
+ npm publish --access public --tag " ${tag} " || {
136
+ echo " trying again in 60s..."
137
+ sleep 60
138
+ npm publish --access public --tag " ${tag} "
139
+ }
132
140
133
141
echo " adding cdn aliases..."
134
142
packageName=" $( node -e " process.stdout.write(require('./package.json').name)" ) "
You can’t perform that action at this time.
0 commit comments