Skip to content

Commit

Permalink
feat(publish): Reuse OTP
Browse files Browse the repository at this point in the history
  • Loading branch information
klarstrup committed Aug 29, 2024
1 parent 16169a9 commit 1fe361c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish-npm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ async function publish() {
);
const cwd = process.cwd();
const publishLog = ['# Packages'];
let otpCode;
for (const [packageJsonPath, version] of targetVersions) {
process.chdir(packageJsonPath.replace('/package.json', ''));

Expand All @@ -453,7 +454,6 @@ async function publish() {
]);
const pubInd = ora(`Publishing ${name}@${tag} ${nextVersion}`).start();
if (!DRY_RUN) {
let otpCode;
async function publish() {
try {
await run('npm', [
Expand Down

0 comments on commit 1fe361c

Please sign in to comment.