mirror of https://github.com/vuejs/core.git
workflow: remove yarn usage in release script
This commit is contained in:
parent
e4a2d11f82
commit
32b91dbd87
|
@ -346,18 +346,16 @@ async function publishPackage(pkgName, version) {
|
||||||
|
|
||||||
step(`Publishing ${pkgName}...`)
|
step(`Publishing ${pkgName}...`)
|
||||||
try {
|
try {
|
||||||
await runIfNotDry(
|
await run(
|
||||||
// note: use of yarn is intentional here as we rely on its publishing
|
// note: use of yarn is intentional here as we rely on its publishing
|
||||||
// behavior.
|
// behavior.
|
||||||
'yarn',
|
'npm',
|
||||||
[
|
[
|
||||||
'publish',
|
'publish',
|
||||||
'--new-version',
|
|
||||||
version,
|
|
||||||
...(releaseTag ? ['--tag', releaseTag] : []),
|
...(releaseTag ? ['--tag', releaseTag] : []),
|
||||||
'--access',
|
'--access',
|
||||||
'public',
|
'public',
|
||||||
...(skipGit ? ['--no-commit-hooks', '--no-git-tag-version'] : [])
|
...(isDryRun ? ['--dry-run'] : [])
|
||||||
],
|
],
|
||||||
{
|
{
|
||||||
cwd: pkgRoot,
|
cwd: pkgRoot,
|
||||||
|
|
Loading…
Reference in New Issue