Skip to content

Commit

Permalink
Fix publish package workflow for npm workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dopenguin committed Mar 5, 2024
1 parent cc5237b commit a65b442
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/publishPackages.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ for (const path of packages) {

cp.execSync('npm version ' + nextVersion, context)
cp.execSync(
'npm set //registry.npmjs.org/:_authToken ' +
process.env.NODE_AUTH_TOKEN,
`npm set //registry.npmjs.org/:_authToken ${process.env.NODE_AUTH_TOKEN} --workspaces=false --include-workspace-root`,
{ cwd: path }
)
cp.execSync('npm publish --access=public', context)
Expand Down

0 comments on commit a65b442

Please sign in to comment.