Skip to content

Commit

Permalink
ci(release): remove totp (#1562)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jan 9, 2025
1 parent c972753 commit a55b8ae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/ci-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,14 @@ async function dryRunMode() {
async function prodMode() {
console.log('Running in prod mode')

const totpCode = process.env.TOTP_CODE
if (totpCode == null || totpCode === '') {
raiseError("The 'TOTP_CODE' env var isn't defined")
}

const githubToken = process.env.GITHUB_TOKEN
if (githubToken == null || githubToken === '') {
raiseError("The 'GITHUB_TOKEN' env var isn't defined")
}

try {
await execa('npx',
['lerna', 'publish', 'from-package', `--otp=${totpCode}`, '--no-push', '--no-git-tag-version', '--no-changelog', '--yes'],
['lerna', 'publish', 'from-package', '--no-push', '--no-git-tag-version', '--no-changelog', '--yes'],
{ stdin: process.stdin}
)
.pipeStdout(process.stdout)
Expand Down

0 comments on commit a55b8ae

Please sign in to comment.