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 14, 2024
1 parent a67e5d1 commit 3a3938c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .yarn/patches/@semantic-release-npm-npm-11.0.2-0c44373311.patch
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], {
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "yarn@3.6.1"
}
25 changes: 24 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ __metadata:
languageName: node
linkType: hard

"@semantic-release/npm@npm:^11.0.0, @semantic-release/npm@npm:^11.0.2":
"@semantic-release/npm@npm:11.0.2":
version: 11.0.2
resolution: "@semantic-release/npm@npm:11.0.2"
dependencies:
Expand All @@ -2079,6 +2079,29 @@ __metadata:
languageName: node
linkType: hard

"@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=9c88d0&locator=postdfm-root%40workspace%3A."
dependencies:
"@semantic-release/error": ^4.0.0
aggregate-error: ^5.0.0
execa: ^8.0.0
fs-extra: ^11.0.0
lodash-es: ^4.17.21
nerf-dart: ^1.0.0
normalize-url: ^8.0.0
npm: ^10.0.0
rc: ^1.2.8
read-pkg: ^9.0.0
registry-auth-token: ^5.0.0
semver: ^7.1.2
tempy: ^3.0.0
peerDependencies:
semantic-release: ">=20.1.0"
checksum: 6534405d64503c0859dc2be5cc89375bcedc5a75a3e61f25ead47545b2390e7f1abb512fdd701adb3525ffc9e639986fa3469da0c67717283c4942cba0ad5af3
languageName: node
linkType: hard

"@semantic-release/release-notes-generator@npm:^12.0.0":
version: 12.0.0
resolution: "@semantic-release/release-notes-generator@npm:12.0.0"
Expand Down

0 comments on commit 3a3938c

Please sign in to comment.