Skip to content

Commit

Permalink
Fix release script publish access
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 30, 2022
1 parent b530497 commit 32dfb1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/release.js
Expand Up @@ -280,12 +280,13 @@ async function commitChanges(newVersion, gitTag) {
function releasePackages(newVersion) {
const releaseEnv = { ...process.env, ROLLUP_RELEASE: 'releasing' };
const releaseTag = semverPreRelease(newVersion) ? ['--tag', 'beta'] : [];
const args = ['publish', '--access', 'public', ...releaseTag];
return Promise.all([
runWithEcho('npm', ['publish', ...releaseTag], {
runWithEcho('npm', args, {
cwd: new URL('..', import.meta.url),
env: releaseEnv
}),
runWithEcho('npm', ['publish', ...releaseTag], {
runWithEcho('npm', args, {
cwd: new URL('../browser', import.meta.url),
env: releaseEnv
})
Expand Down

0 comments on commit 32dfb1e

Please sign in to comment.