Skip to content

Commit

Permalink
debug: further log npmrc file file (danger)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiltcoffee committed Jan 15, 2024
1 parent bda52db commit 0eb5f5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ index 6e92d0801b42e6b57fa508b87b374d1706639fc9..d519a27d551dd32e4fe6b32a746eef5e
npmrc,
`${currentConfig ? `${currentConfig}\n` : ""}${nerfDart(registry)}:_authToken = \${NPM_TOKEN}`
diff --git a/lib/verify-auth.js b/lib/verify-auth.js
index 99e138e98190cf2545937c9d18e426b3ac4aa53d..e5a4d7d2598ac2207d83cdb64f5b250cab26101d 100644
index 99e138e98190cf2545937c9d18e426b3ac4aa53d..b765f9781bf51617f9318363db295e06b3f18f69 100644
--- a/lib/verify-auth.js
+++ b/lib/verify-auth.js
@@ -1,4 +1,4 @@
Expand All @@ -21,13 +21,14 @@ index 99e138e98190cf2545937c9d18e426b3ac4aa53d..e5a4d7d2598ac2207d83cdb64f5b250c
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) {
@@ -16,6 +16,12 @@ export default async function (npmrc, pkg, context) {

await setNpmrcAuth(npmrc, registry, context);

+ console.log("pre logging")
+ $({stdio: 'inherit', verbose: true})`echo \$NPM_TOKEN`
+ $({stdio: 'inherit', verbose: true})`cat ${npmrc}`
+ console.log({cwd, npmrc, registry, env})
+ console.log("post logging")
+
if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,7 @@ __metadata:

"@semantic-release/npm@patch:@semantic-release/npm@npm%3A11.0.2#./.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch::locator=postdfm-root%40workspace%3A.":
version: 11.0.2
resolution: "@semantic-release/npm@patch:@semantic-release/npm@npm%3A11.0.2#./.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch::version=11.0.2&hash=cdc7f2&locator=postdfm-root%40workspace%3A."
resolution: "@semantic-release/npm@patch:@semantic-release/npm@npm%3A11.0.2#./.yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch::version=11.0.2&hash=9c7b21&locator=postdfm-root%40workspace%3A."
dependencies:
"@semantic-release/error": ^4.0.0
aggregate-error: ^5.0.0
Expand All @@ -2098,7 +2098,7 @@ __metadata:
tempy: ^3.0.0
peerDependencies:
semantic-release: ">=20.1.0"
checksum: 2ea471062dbbff6ee12169e43167ddadb11a973840c4b58f4480a39a0d8fc61b643eb6f7a1b8781aa3ecbec83151e01257f9a9abc7e0f7824adce6714b995b68
checksum: e77d9b352d90ae6ecc72b8cf024139830e8685453dd5d0002fdaba345516d34fda3cd9040a7e4f20874dcf75ddd21fc7d6526d7db65251a45980d1789d13c839
languageName: node
linkType: hard

Expand Down

0 comments on commit 0eb5f5f

Please sign in to comment.