Skip to content

Commit

Permalink
show npm auth tokens in publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
spearwolf committed Oct 7, 2023
1 parent 9418552 commit 2eb4f7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/publishNpmPkg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const pkgJson = JSON.parse(fs.readFileSync(path.resolve(packageRoot, 'package.js
console.log('workspaceRoot:', workspaceRoot);
console.log('projectRoot:', projectRoot);
console.log('packageRoot:', packageRoot);
console.log('dryRun:', DRY_RUN ? 'yes' : 'no');
console.log('env: ---');
console.log(' - NPM_TOKEN:', process.env.NPM_TOKEN ? `${process.env.NPM_TOKEN.substring(0, 6)}...` : 'not set');
console.log(' - NPM_AUTH_TOKEN:', process.env.NPM_AUTH_TOKEN ? `${process.env.NPM_AUTH_TOKEN.substring(0, 6)}...` : 'not set');
console.log('packageJson: ---');
console.dir(pkgJson);

Expand Down

0 comments on commit 2eb4f7a

Please sign in to comment.