Skip to content

Commit 4ae1fce

Browse files
author
John Jenkins
committed
rm check task
1 parent 5b4de06 commit 4ae1fce

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/release-tasks.ts

+29-29
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,35 @@ export function runReleaseTasks(opts: BuildOptions, args: ReadonlyArray<string>)
5757
}
5858

5959
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+
// },
8989
{
9090
title: 'Check current branch',
9191
task: () =>

0 commit comments

Comments
 (0)