From 56adad513bd6ba7e10974754c255b121d37f1b0c Mon Sep 17 00:00:00 2001 From: Sindre Wilting Date: Sun, 12 Jul 2020 10:52:08 +0200 Subject: [PATCH] USe the correct cwd when publishing packages --- Source/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/action.ts b/Source/action.ts index 94a4b9f..aca8158 100644 --- a/Source/action.ts +++ b/Source/action.ts @@ -103,7 +103,7 @@ async function publishPackages(project: Project, version: SemVer) { args.push('--tag'); args.push(prerelease[0]); } - if (await exec('npm publish', args, { ignoreReturnCode: true, cwd: project.root}) !== 0) allSucceeded = false; + if (await exec('npm publish', args, { ignoreReturnCode: true, cwd: packageToPublish.rootFolder}) !== 0) allSucceeded = false; } return allSucceeded; }