This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
const lineWidth = 80 ;
19
19
const lastMajorVer = JSON . parse ( exec ( 'curl https://material.angularjs.org/docs.json' ) ) . latest ;
20
20
let newVersion ;
21
+ let npmTag = 'latest' ;
21
22
22
23
try {
23
24
child_process . execSync ( 'gulp --version' , defaultOptions ) ;
26
27
}
27
28
header ( ) ;
28
29
const dryRun = prompt ( `Is this a dry-run? [${ "yes" . cyan } /no] ` , 'yes' ) !== 'no' ;
30
+ npmTag = prompt ( `What would you like the NPM tag to be? [${ npmTag . cyan } /next] ` , npmTag ) ;
29
31
30
32
if ( dryRun ) {
31
33
oldVersion = prompt ( `What would you like the old version to be? (default: ${ oldVersion . cyan } ) ` , oldVersion ) ;
243
245
done ( ) ;
244
246
// add steps to push script
245
247
pushCmds . push (
246
- comment ( ' push to bower (master and tag) and publish to npm' ) ,
248
+ comment ( ` push to bower (master and tag) and publish to npm as ' ${ npmTag } '` ) ,
247
249
'cd ' + options . cwd ,
248
250
'cp ../CHANGELOG.md .' ,
249
251
'git add CHANGELOG.md' ,
253
255
'git push' ,
254
256
'git push --tags' ,
255
257
'rm -rf .git/' ,
256
- ' npm publish' ,
258
+ ` npm publish --tag ${ npmTag } ` ,
257
259
'cd ..'
258
260
) ;
259
261
}
You can’t perform that action at this time.
0 commit comments