| @@ -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
