-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot set properties of null (setting 'peer') #807
Comments
We are not the maintainers of semantic-release-monorepo. Please either seek help from the maintainers of that project or reduce your reproduction to an example that does not include it |
Hmm, sure. Current state of the script
Output Run pnpm release
pnpm release
shell: /usr/bin/bash -e {0}
env:
PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
GITHUB_TOKEN: ***
NPM_TOKEN: ***
> @seahindeniz/[email protected] release /home/runner/work/config/config
> pnpm -r --workspace-concurrency=1 release
Scope: 3 of 4 workspace projects
@seahindeniz/[email protected] : release packages/eslint-config
> @seahindeniz/[email protected] prerelease /home/runner/work/config/config/packages/eslint-config
> pnpm build
> @seahindeniz/[email protected] build /home/runner/work/config/config/packages/eslint-config
> vite build
vite v5.2.11 building for production...
transforming...
✓ 30 modules transformed.
rendering chunks...
computing gzip size...
dist/utils/merge.d.ts 0.09 kB
dist/rules/core.d.ts 0.13 kB
dist/rules/cspell.d.ts 0.13 kB
dist/rules/jsdoc.d.ts 0.13 kB
dist/rules/stylistic.d.ts 0.13 kB
dist/configs/node/index.d.ts 0.13 kB
dist/configs/config/index.d.ts 0.13 kB
dist/configs/dom/index.d.ts 0.13 kB
dist/rules/typescript.d.ts 0.13 kB
dist/rules/vue.d.ts 0.13 kB
dist/rules/vue2.d.ts 0.13 kB
dist/utils/mergeAllConfig.d.ts 0.15 kB
dist/configs/typescript/index.d.ts 0.18 kB
dist/configs/typescript-dom/index.d.ts 0.18 kB
dist/configs/vue3/index.d.ts 0.18 kB
dist/configs/vue3-typescript/index.d.ts 0.18 kB
dist/configs/vue2/index.d.ts 0.18 kB
dist/base.d.ts 0.25 kB
dist/utils/compat.d.ts 0.64 kB
dist/main.d.ts 0.80 kB
dist/main.js 0.07 kB │ gzip: 0.09 kB
dist/rules/cspell.js 0.09 kB │ gzip: 0.10 kB
dist/index-CixUmpPQ.js 0.15 kB │ gzip: 0.12 kB
dist/rules/vue2.js 0.24 kB │ gzip: 0.18 kB
dist/compat-BMmtJ5BI.js 0.42 kB │ gzip: 0.25 kB
dist/index-B16ngeJj.js 0.73 kB │ gzip: 0.38 kB
dist/index-BaFuYv5N.js 0.73 kB │ gzip: 0.39 kB
dist/rules/jsdoc.js 0.84 kB │ gzip: 0.33 kB
dist/index-C6lOnN-C.js 1.02 kB │ gzip: 0.50 kB
dist/index-x9l2X-No.js 1.03 kB │ gzip: 0.50 kB
dist/index-BNob5rb3.js 1.11 kB │ gzip: 0.49 kB
dist/rules/typescript.js 1.16 kB │ gzip: 0.39 kB
dist/index-B9y7N-hx.js 1.27 kB │ gzip: 0.55 kB
dist/index-BtHFk1z3.js 1.28 kB │ gzip: 0.59 kB
dist/main-BeBiQCVR.js 2.03 kB │ gzip: 0.85 kB
dist/rules/stylistic.js 4.15 kB │ gzip: 1.09 kB
dist/rules/core.js 4.55 kB │ gzip: 1.24 kB
dist/rules/vue.js 5.74 kB │ gzip: 1.58 kB
dist/base-BAede0cC.js 60.37 kB │ gzip: 11.69 kB
dist/utils/merge.d.ts 0.09 kB
dist/rules/core.d.ts 0.13 kB
dist/rules/cspell.d.ts 0.13 kB
dist/rules/jsdoc.d.ts 0.13 kB
dist/rules/stylistic.d.ts 0.13 kB
dist/configs/node/index.d.ts 0.13 kB
dist/configs/config/index.d.ts 0.13 kB
dist/configs/dom/index.d.ts 0.13 kB
dist/rules/typescript.d.ts 0.13 kB
dist/rules/vue.d.ts 0.13 kB
dist/rules/vue2.d.ts 0.13 kB
dist/utils/mergeAllConfig.d.ts 0.15 kB
dist/configs/typescript/index.d.ts 0.18 kB
dist/configs/typescript-dom/index.d.ts 0.18 kB
dist/configs/vue3/index.d.ts 0.18 kB
dist/configs/vue3-typescript/index.d.ts 0.18 kB
dist/configs/vue2/index.d.ts 0.18 kB
dist/base.d.ts 0.25 kB
dist/utils/compat.d.ts 0.64 kB
dist/main.d.ts 0.80 kB
dist/rules/cspell.cjs 0.08 kB │ gzip: 0.09 kB
dist/main.cjs 0.08 kB │ gzip: 0.10 kB
dist/index-CAuGyIr4.cjs 0.20 kB │ gzip: 0.17 kB
dist/rules/vue2.cjs 0.20 kB │ gzip: 0.16 kB
dist/compat-CkhpJ9YP.cjs 0.55 kB │ gzip: 0.34 kB
dist/rules/jsdoc.cjs 0.70 kB │ gzip: 0.32 kB
dist/index-Ac6Hw-uA.cjs 0.88 kB │ gzip: 0.50 kB
dist/index-Rmzbhrzc.cjs 0.88 kB │ gzip: 0.50 kB
dist/rules/typescript.cjs 1.01 kB │ gzip: 0.36 kB
dist/index-qbptbq51.cjs 1.03 kB │ gzip: 0.50 kB
dist/index-FzjaDGwD.cjs 1.12 kB │ gzip: 0.61 kB
dist/index-CYJsMDkS.cjs 1.13 kB │ gzip: 0.61 kB
dist/index-SyvyuQ5y.cjs 1.14 kB │ gzip: 0.56 kB
dist/index-TqgLVfW-.cjs 1.32 kB │ gzip: 0.68 kB
dist/main-tNBIB6QK.cjs 1.95 kB │ gzip: 0.83 kB
dist/rules/stylistic.cjs 3.32 kB │ gzip: 1.03 kB
dist/rules/core.cjs 3.34 kB │ gzip: 1.16 kB
dist/rules/vue.cjs 4.50 kB │ gzip: 1.51 kB
dist/base-DxTgZSag.cjs 48.72 kB │ gzip: 11.20 kB
✓ built in 2.17s
> @seahindeniz/[email protected] release /home/runner/work/config/config/packages/eslint-config
> semantic-release
[4:38:49 PM] [semantic-release] › ℹ Running semantic-release version 23.1.1
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/changelog"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/npm"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/github"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "verifyConditions" from "@semantic-release/git"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/changelog"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/npm"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "prepare" from "@semantic-release/git"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/npm"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "publish" from "@semantic-release/github"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/npm"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "addChannel" from "@semantic-release/github"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "success" from "@semantic-release/github"
[4:38:49 PM] [semantic-release] › ✔ Loaded plugin "fail" from "@semantic-release/github"
[4:38:51 PM] [semantic-release] › ✔ Run automated release from branch beta on repository https://github.com/seahindeniz/config
[4:38:51 PM] [semantic-release] › ✔ Allowed to push to the Git repository
[4:38:51 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/changelog"
[4:38:51 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/changelog"
[4:38:51 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/npm"
[4:38:51 PM] [semantic-release] [@semantic-release/npm] › ℹ Verify authentication for registry https://registry.npmjs.org/
[4:38:51 PM] [semantic-release] [@semantic-release/npm] › ℹ Reading npm config from /home/runner/work/config/config/packages/eslint-config/.npmrc
[4:38:51 PM] [semantic-release] [@semantic-release/npm] › ℹ Wrote NPM_TOKEN to /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc
seahindeniz-dev
[4:38:51 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/npm"
[4:38:51 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/github"
[4:38:51 PM] [semantic-release] [@semantic-release/github] › ℹ Verify GitHub authentication (https://api.github.com)
[4:38:51 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/github"
[4:38:51 PM] [semantic-release] › ℹ Start step "verifyConditions" of plugin "@semantic-release/git"
[4:38:51 PM] [semantic-release] › ✔ Completed step "verifyConditions" of plugin "@semantic-release/git"
[4:38:51 PM] [semantic-release] › ℹ Found git tag @seahindeniz/[email protected] associated with version 1.3.0-beta.5 on branch beta
[4:38:51 PM] [semantic-release] › ℹ Found 2 commits since last release
[4:38:51 PM] [semantic-release] › ℹ Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[4:38:51 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: fix: update release command in package.json
[4:38:51 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The release type for the commit is patch
[4:38:51 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analyzing commit: Revert "chore(release): 1.3.0-beta.5 [skip ci]"
This reverts commit 4be46f97501a8a03ac690cc7c407b60d31e72758.
[4:38:51 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ The release type for the commit is patch
[4:38:51 PM] [semantic-release] [@semantic-release/commit-analyzer] › ℹ Analysis of 2 commits complete: patch release
[4:38:51 PM] [semantic-release] › ✔ Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
[4:38:51 PM] [semantic-release] › ℹ The next release version is 1.3.0-beta.6
[4:38:51 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[4:38:51 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[4:38:51 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/changelog"
[4:38:51 PM] [semantic-release] [@semantic-release/changelog] › ℹ Update /home/runner/work/config/config/packages/eslint-config/CHANGELOG.md
[4:38:51 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/changelog"
[4:38:52 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/npm"
[4:38:52 PM] [semantic-release] [@semantic-release/npm] › ℹ Write version 1.3.0-beta.6 to package.json in /home/runner/work/config/config/packages/eslint-config
v1.3.0-beta.6
[4:38:52 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/npm"
[4:38:52 PM] [semantic-release] › ℹ Start step "prepare" of plugin "@semantic-release/git"
[4:38:52 PM] [semantic-release] [@semantic-release/git] › ℹ Found 2 file(s) to commit
[4:38:53 PM] [semantic-release] [@semantic-release/git] › ℹ Prepared Git release: @seahindeniz/[email protected]
[4:38:53 PM] [semantic-release] › ✔ Completed step "prepare" of plugin "@semantic-release/git"
[4:38:53 PM] [semantic-release] › ℹ Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[4:38:53 PM] [semantic-release] › ✔ Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
[4:38:54 PM] [semantic-release] › ✔ Created tag @seahindeniz/[email protected]
[4:38:54 PM] [semantic-release] › ℹ Start step "publish" of plugin "@semantic-release/npm"
[4:38:54 PM] [semantic-release] [@semantic-release/npm] › ℹ Publishing version 1.3.0-beta.6 to npm registry on dist-tag beta
npm ERR! Cannot set properties of null (setting 'peer')
npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log
[4:38:57 PM] [semantic-release] › ✘ Failed step "publish" of plugin "@semantic-release/npm"
[4:38:57 PM] [semantic-release] › ✘ An error occurred while running semantic-release: ExecaError: Command failed with exit code 1: npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'
npm ERR! Cannot set properties of null (setting 'peer')
npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log
at getFinalError (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:86:16)
at getAsyncResult (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:164:4)
at handlePromise (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:148:17)
at async default (file:///home/runner/work/config/config/node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@semantic-release/npm/lib/publish.js:30:5)
at async validator (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected][email protected]/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
at async file:///home/runner/work/config/config/node_modules/.pnpm/[email protected][email protected]/node_modules/semantic-release/lib/plugins/pipeline.js:38:36
at async Promise.all (index 0)
at async next (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/p-reduce/index.js:15:44) {
shortMessage: "Command failed with exit code 1: npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
command: 'npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry https://registry.npmjs.org/',
escapedCommand: "npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
cwd: '/home/runner/work/config/config/packages/eslint-config',
durationMs: 2575.905975,
failed: true,
timedOut: false,
isCanceled: false,
isTerminated: false,
isMaxBuffer: false,
exitCode: 1,
stdout: '',
stderr: "npm ERR! Cannot set properties of null (setting 'peer')\n" +
'\n' +
'npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log',
stdio: [
undefined,
'',
"npm ERR! Cannot set properties of null (setting 'peer')\n" +
'\n' +
'npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log'
],
pipedFrom: [],
pluginName: '@semantic-release/npm'
}
ExecaError: Command failed with exit code 1: npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'
npm ERR! Cannot set properties of null (setting 'peer')
npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log
at getFinalError (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/final-error.js:6:9)
at makeError (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/return/result.js:86:16)
at getAsyncResult (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:164:4)
at handlePromise (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/execa/lib/methods/main-async.js:148:17)
at async default (file:///home/runner/work/config/config/node_modules/.pnpm/@[email protected][email protected][email protected]_/node_modules/@semantic-release/npm/lib/publish.js:30:5)
at async validator (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected][email protected]/node_modules/semantic-release/lib/plugins/normalize.js:36:24)
at async file:///home/runner/work/config/config/node_modules/.pnpm/[email protected][email protected]/node_modules/semantic-release/lib/plugins/pipeline.js:38:36
at async Promise.all (index 0)
at async next (file:///home/runner/work/config/config/node_modules/.pnpm/[email protected]/node_modules/p-reduce/index.js:15:44) {
shortMessage: "Command failed with exit code 1: npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
command: 'npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry https://registry.npmjs.org/',
escapedCommand: "npm publish /home/runner/work/config/config/packages/eslint-config --userconfig /tmp/9271f3340f7601b36ee667d9620ecb87/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
cwd: '/home/runner/work/config/config/packages/eslint-config',
durationMs: 2575.905975,
failed: true,
timedOut: false,
isCanceled: false,
isTerminated: false,
isMaxBuffer: false,
exitCode: 1,
stdout: '',
stderr: "npm ERR! Cannot set properties of null (setting 'peer')\n" +
'\n' +
'npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log',
stdio: [
undefined,
'',
"npm ERR! Cannot set properties of null (setting 'peer')\n" +
'\n' +
'npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-05-19T16_38_55_077Z-debug-0.log'
],
pipedFrom: [],
pluginName: '@semantic-release/npm'
/home/runner/work/config/config/packages/eslint-config:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL @seahindeniz/[email protected] release: `semantic-release`
Exit status 1
ELIFECYCLE Command failed with exit code 1.
}
Error: Process completed with exit code 1. |
does npm/cli#6622 possibly describe your situation, as mentioned in sindresorhus/execa#1073? you still have some details of your project that introduce complexities that may go beyond our supported use cases. i may not have been clear enough with my mention of |
Hey @seahindeniz, had the same issue with one of my packages, didnt find a "fast" workaround or the issue... but i only have it if i use pnpm and semantic-release-npm, did create then a semantic-release-pnpm https://github.com/anolilab/semantic-release/blob/main/packages/semantic-release-pnpm/README.md, this issue did gone Ps.: For my the issue could be reproduced with npm publish in the folder witch this error did happen. |
Hello, I have a repo with GH Actions workflow and it was publishing until recently. I'm not sure and tried to downgrade, remove cache, everything I can think of but non of the solutions I found didn't work. Is it somehow related to something?
Release script
The workflow
Here's the output
The text was updated successfully, but these errors were encountered: