##// END OF EJS Templates
added release check to publish task
cin -
r70:f664825db16a default
parent child
Show More
@@ -261,6 +261,10 task pack(dependsOn: [build, _packageMet
261 }
261 }
262
262
263 task publish(dependsOn: [build, _packageMeta], type: Exec) {
263 task publish(dependsOn: [build, _packageMeta], type: Exec) {
264 doFirst {
265 if (!isRelease)
266 throw new Exception("Can't publish an unreleased version");
267 }
264 workingDir distDir
268 workingDir distDir
265
269
266 commandLine 'npm', 'publish', '--access', 'public'
270 commandLine 'npm', 'publish', '--access', 'public'
General Comments 0
You need to be logged in to leave comments. Login now