Skip to content

Commit 016e02e

Browse files
committed
fix: improve npm authentication check in release script
1 parent b5fe044 commit 016e02e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ try {
8282
// Check 6: NPM login
8383
console.log('\n👤 Checking npm authentication...');
8484
try {
85-
const npmUser = execSync('npm whoami 2>/dev/null', { encoding: 'utf8' }).trim();
85+
const npmUser = execSync('npm whoami --registry https://registry.npmjs.org/', { encoding: 'utf8', stdio: 'pipe' }).trim();
8686
console.log(` ✅ Logged in as: ${npmUser}`);
8787
} catch (error) {
8888
console.log(' ❌ Not logged into npm');

0 commit comments

Comments
 (0)