-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: further log npmrc file file (danger)
- Loading branch information
1 parent
a67e5d1
commit 3a3938c
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/lib/verify-auth.js b/lib/verify-auth.js | ||
index 99e138e98190cf2545937c9d18e426b3ac4aa53d..7205197ea88eefc65cf94ff9c830f75364851de5 100644 | ||
--- a/lib/verify-auth.js | ||
+++ b/lib/verify-auth.js | ||
@@ -1,4 +1,4 @@ | ||
-import { execa } from "execa"; | ||
+import { execa, $ } from "execa"; | ||
import normalizeUrl from "normalize-url"; | ||
import AggregateError from "aggregate-error"; | ||
import getError from "./get-error.js"; | ||
@@ -16,6 +16,11 @@ export default async function (npmrc, pkg, context) { | ||
|
||
await setNpmrcAuth(npmrc, registry, context); | ||
|
||
+ const echo = $`echo $NPM_TOKEN` | ||
+ console.log(echo.stdout); | ||
+ const cat = $`cat ${npmrc}` | ||
+ console.log(cat.stdout); | ||
+ | ||
if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) { | ||
try { | ||
const whoamiResult = execa("npm", ["whoami", "--userconfig", npmrc, "--registry", registry], { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,9 @@ | |
}, | ||
"snyk": true, | ||
"resolutions": { | ||
"npm/chalk": "^4.0.0" | ||
"npm/chalk": "^4.0.0", | ||
"@semantic-release/npm@^11.0.2": "patch:@semantic-release/npm@npm%3A11.0.2#./.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch", | ||
"@semantic-release/npm@^11.0.0": "patch:@semantic-release/npm@npm%3A11.0.2#./.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters