Skip to content

Commit

Permalink
chore: log
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Apr 13, 2022
1 parent c1110cd commit d07abfe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/release/publish.ts
@@ -1,3 +1,4 @@
import { createHash } from "crypto"
import type { Commit, PackageToRelease } from "./types"

import { debug, pkgJson, execSync } from "./utils"
Expand Down Expand Up @@ -38,7 +39,13 @@ export async function publish(options: {
npmPublish += " --dry-run"
}

execSync(npmPublish, { cwd: pkg.path })
console.log(
pkg.name,
process.env.NPM_TOKEN?.length,
createHash("sha256").update(process.env.NPM_TOKEN!).digest("hex")
)

execSync(npmPublish, { cwd: pkg.path, env: process.env })
}

if (dryRun) {
Expand Down

0 comments on commit d07abfe

Please sign in to comment.