Skip to content

Commit f1698f9

Browse files
author
niuweili
committed
debug NPM_TOKEN
1 parent d483ba4 commit f1698f9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/deploy-auto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262

6363
- name: Debug NPM token
6464
run: |
65-
echo "Token prefix: ${NODE_AUTH_TOKEN:0:4}..."
65+
echo "Token prefix: ${NPM_TOKEN:0:4}..."
6666
npm whoami
6767
6868
- name: Publish to NPM

scripts/lib/secrets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const { command } = require('../lib/command')
22
const dotenv = require('dotenv')
3+
const { printLog, runMain } = require('../lib/executionUtils')
34

45
dotenv.config()
56

@@ -31,6 +32,7 @@ function getTelemetryOrgApplicationKey(site) {
3132

3233
function getNpmToken() {
3334
// return getSecretKey('ci.browser-sdk.npm_token')
35+
printLog('NPM_TOKEN--->', process.env.NPM_TOKEN)
3436
return process.env.NPM_TOKEN || ''
3537
}
3638

0 commit comments

Comments
 (0)