Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Jul 30, 2022
1 parent b530497 commit 4c3b1a4
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 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 Expand Up @@ -318,17 +319,17 @@ function postReleaseComments(includedPRs, issues, version) {
issues
.createIssueComment(
pr,
`This PR has been released as part of rollup@${version}. ${installNote}`,
...closed.map(closedPr =>
issues
.createIssueComment(
closedPr,
`This issue has been resolved via #${pr} as part of rollup@${version}. ${installNote}`
)
.then(() => console.log(cyan(`Added fix comment to #${closedPr} via #${pr}.`)))
)
`This PR has been released as part of rollup@${version}. ${installNote}`
)
.then(() => console.log(cyan(`Added release comment to #${pr}.`)))
.then(() => console.log(cyan(`Added release comment to #${pr}.`))),
...closed.map(closedPr =>
issues
.createIssueComment(
closedPr,
`This issue has been resolved via #${pr} as part of rollup@${version}. ${installNote}`
)
.then(() => console.log(cyan(`Added fix comment to #${closedPr} via #${pr}.`)))
)
])
)
);
Expand Down

0 comments on commit 4c3b1a4

Please sign in to comment.