@@ -57,35 +57,35 @@ export function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<string>)
57
57
}
58
58
59
59
tasks . push (
60
- {
61
- title : 'Check git tag existence' ,
62
- task : ( ) =>
63
- execa ( 'git' , [ 'fetch' ] )
64
- // Retrieve the prefix for a version string - https://docs.npmjs.com/cli/v7/using-npm/config#tag-version-prefix
65
- . then ( ( ) => execa ( 'npm' , [ 'config' , 'get' , 'tag-version-prefix' ] ) )
66
- . then (
67
- ( { stdout } ) => ( tagPrefix = stdout ) ,
68
- ( ) => { }
69
- )
70
- // verify that a tag for the new version string does not already exist by checking the output of
71
- // `git rev-parse --verify`
72
- . then ( ( ) => execa ( 'git' , [ 'rev-parse' , '--quiet' , '--verify' , `refs/tags/${ tagPrefix } ${ newVersion } ` ] ) )
73
- . then (
74
- ( { stdout } ) => {
75
- if ( stdout ) {
76
- throw new Error ( `Git tag \`${ tagPrefix } ${ newVersion } \` already exists.` ) ;
77
- }
78
- } ,
79
- ( err ) => {
80
- // Command fails with code 1 and no output if the tag does not exist, even though `--quiet` is provided
81
- // https://github.com/sindresorhus/np/pull/73#discussion_r72385685
82
- if ( err . stdout !== '' || err . stderr !== '' ) {
83
- throw err ;
84
- }
85
- }
86
- ) ,
87
- skip : ( ) => isDryRun ,
88
- } ,
60
+ // {
61
+ // title: 'Check git tag existence',
62
+ // task: () =>
63
+ // execa('git', ['fetch'])
64
+ // // Retrieve the prefix for a version string - https://docs.npmjs.com/cli/v7/using-npm/config#tag-version-prefix
65
+ // .then(() => execa('npm', ['config', 'get', 'tag-version-prefix']))
66
+ // .then(
67
+ // ({ stdout }) => (tagPrefix = stdout),
68
+ // () => {}
69
+ // )
70
+ // // verify that a tag for the new version string does not already exist by checking the output of
71
+ // // `git rev-parse --verify`
72
+ // .then(() => execa('git', ['rev-parse', '--quiet', '--verify', `refs/tags/${tagPrefix}${newVersion}`]))
73
+ // .then(
74
+ // ({ stdout }) => {
75
+ // if (stdout) {
76
+ // throw new Error(`Git tag \`${tagPrefix}${newVersion}\` already exists.`);
77
+ // }
78
+ // },
79
+ // (err) => {
80
+ // // Command fails with code 1 and no output if the tag does not exist, even though `--quiet` is provided
81
+ // // https://github.com/sindresorhus/np/pull/73#discussion_r72385685
82
+ // if (err.stdout !== '' || err.stderr !== '') {
83
+ // throw err;
84
+ // }
85
+ // }
86
+ // ),
87
+ // skip: () => isDryRun,
88
+ // },
89
89
{
90
90
title : 'Check current branch' ,
91
91
task : ( ) =>
0 commit comments