Skip to content
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

Open
seahindeniz opened this issue May 19, 2024 · 4 comments
Open

Cannot set properties of null (setting 'peer') #807

seahindeniz opened this issue May 19, 2024 · 4 comments

Comments

@seahindeniz
Copy link

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

"release": "semantic-release -e semantic-release-monorepo"

The workflow

name: Publish

on:
  workflow_dispatch:
  push:
    branches:
      - main
      - beta
      - alpha
      - release

concurrency:
  group: publish-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

permissions:
  contents: write

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest
    timeout-minutes: 15
    permissions:
      contents: write
      issues: write
      pull-requests: write
      id-token: write
    steps:
      - name: Checkout
        uses: actions/[email protected]
        with:
          fetch-depth: 0
          persist-credentials: false

      - name: Install pnpm
        uses: pnpm/[email protected]
        with:
          run_install: false

      - name: Setup Node.js
        uses: actions/[email protected]
        with:
          cache: pnpm

      - name: Install dependencies
        run: pnpm install

      - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
        run: pnpm audit signatures

      - name: Release a new version
        run: pnpm release
        env:
          GITHUB_TOKEN: ${{ secrets.PAT }}
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Here's the 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 3.11s
  
  > @seahindeniz/[email protected] release /home/runner/_work/config/config/packages/eslint-config
  > semantic-release -e semantic-release-monorepo
  
  [9:43:01 AM] [semantic-release] › ℹ  Running semantic-release version 23.1.1
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/changelog"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/git"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/changelog"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/git"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
  [9:43:01 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
  [9:43:07 AM] [semantic-release] › ✔  Run automated release from branch beta on repository https://github.com/useinsider/config
  [9:43:07 AM] [semantic-release] › ✔  Allowed to push to the Git repository
  [9:43:07 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/changelog"
  [9:43:07 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/changelog"
  [9:43:07 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/npm"
  [9:43:07 AM] [semantic-release] [@semantic-release/npm] › ℹ  Verify authentication for registry https://registry.npmjs.org/
  [9:43:07 AM] [semantic-release] [@semantic-release/npm] › ℹ  Reading npm config from /home/runner/_work/config/config/packages/eslint-config/.npmrc
  [9:43:07 AM] [semantic-release] [@semantic-release/npm] › ℹ  Wrote NPM_TOKEN to /tmp/3a4a397792a5454e2677f159bdd15380/.npmrc
  useinsider-dev
  [9:43:08 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/npm"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/github"
  [9:43:08 AM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
  [9:43:08 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/github"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "verifyConditions" of plugin "@semantic-release/git"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "verifyConditions" of plugin "@semantic-release/git"
  [9:43:08 AM] [semantic-release] › ℹ  Found git tag @seahindeniz/[email protected] associated with version 1.3.0-beta.3 on branch beta
  [9:43:08 AM] [semantic-release] › ℹ  Found 4 commits since last release
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Start step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Found 3 commits for package @seahindeniz/eslint-config since last release
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Analyzing commit: Revert "chore(release): 1.3.0-beta.3 [skip ci]"
  
  This reverts commit 7e2136d4677286b11b3af3c1fe21c798a2ff6af7.
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  The release type for the commit is patch
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Analysis of 3 commits complete: patch release
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Completed step "analyzeCommits" of plugin "@semantic-release/commit-analyzer"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/release-notes-generator" does not provide step "analyzeCommits"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/changelog" does not provide step "analyzeCommits"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/npm" does not provide step "analyzeCommits"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/github" does not provide step "analyzeCommits"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/git" does not provide step "analyzeCommits"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "analyzeCommits" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  The next release version is 1.3.0-beta.4
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/commit-analyzer" does not provide step "generateNotes"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Found 3 commits for package @seahindeniz/eslint-config since last release
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/changelog" does not provide step "generateNotes"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/npm" does not provide step "generateNotes"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/github" does not provide step "generateNotes"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/git" does not provide step "generateNotes"
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:08 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/changelog"
  [9:43:08 AM] [semantic-release] [@semantic-release/changelog] › ℹ  Update /home/runner/_work/config/config/packages/eslint-config/CHANGELOG.md
  [9:43:08 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/changelog"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/npm"
  [9:43:08 AM] [semantic-release] [@semantic-release/npm] › ℹ  Write version 1.3.0-beta.4 to package.json in /home/runner/_work/config/config/packages/eslint-config
  v1.3.0-beta.4
  [9:43:08 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/npm"
  [9:43:08 AM] [semantic-release] › ℹ  Start step "prepare" of plugin "@semantic-release/git"
  [9:43:08 AM] [semantic-release] [@semantic-release/git] › ℹ  Found 2 file(s) to commit
  [9:43:10 AM] [semantic-release] [@semantic-release/git] › ℹ  Prepared Git release: @seahindeniz/[email protected]
  [9:43:10 AM] [semantic-release] › ✔  Completed step "prepare" of plugin "@semantic-release/git"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/commit-analyzer" does not provide step "generateNotes"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Start step "generateNotes" of plugin "@semantic-release/release-notes-generator"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Found 3 commits for package @seahindeniz/eslint-config since last release
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Completed step "generateNotes" of plugin "@semantic-release/release-notes-generator"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/changelog" does not provide step "generateNotes"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/npm" does not provide step "generateNotes"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/github" does not provide step "generateNotes"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  Plugin "@semantic-release/git" does not provide step "generateNotes"
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] › ℹ  Start step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:10 AM] [semantic-release] [[Function: semantic-release-monorepo]] › ℹ  No more plugins
  [9:43:10 AM] [semantic-release] › ✔  Completed step "generateNotes" of plugin "[Function: semantic-release-monorepo]"
  [9:43:11 AM] [semantic-release] › ✔  Created tag @seahindeniz/[email protected]
  [9:43:11 AM] [semantic-release] › ℹ  Start step "publish" of plugin "@semantic-release/npm"
  [9:43:11 AM] [semantic-release] [@semantic-release/npm] › ℹ  Publishing version 1.3.0-beta.4 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-19T09_43_11_351Z-debug-0.log
  [9:43:14 AM] [semantic-release] › ✘  Failed step "publish" of plugin "@semantic-release/npm"
  [9:43:14 AM] [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/3a4a397792a5454e2677f159bdd15380/.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-19T09_43_11_351Z-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/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
    command: 'npm publish /home/runner/_work/config/config/packages/eslint-config --userconfig /tmp/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry https://registry.npmjs.org/',
    escapedCommand: "npm publish /home/runner/_work/config/config/packages/eslint-config --userconfig /tmp/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
    cwd: '/home/runner/_work/config/config/packages/eslint-config',
    durationMs: 2801.294807,
    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-19T09_43_11_351Z-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-19T09_43_11_351Z-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/3a4a397792a5454e2677f159bdd15380/.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-19T09_43_11_351Z-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/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
    command: 'npm publish /home/runner/_work/config/config/packages/eslint-config --userconfig /tmp/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry https://registry.npmjs.org/',
    escapedCommand: "npm publish /home/runner/_work/config/config/packages/eslint-config --userconfig /tmp/3a4a397792a5454e2677f159bdd15380/.npmrc --tag beta --registry 'https://registry.npmjs.org/'",
    cwd: '/home/runner/_work/config/config/packages/eslint-config',
    durationMs: 2801.294807,
    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-19T09_43_11_351Z-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-19T09_43_11_351Z-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 -e semantic-release-monorepo`
  Exit status 1
   ELIFECYCLE  Command failed with exit code 1.
  }
  Error: Process completed with exit code 1.
@travi
Copy link
Member

travi commented May 19, 2024

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

@seahindeniz
Copy link
Author

Hmm, sure.
I have removed the monorepo pack from the scripts.

Current state of the script

"release": "semantic-release"

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.

@travi
Copy link
Member

travi commented May 20, 2024

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 semantic-release-monorepo, but we officially do not support monorepos within the official project. as you know, some projects like semantic-release-monorepo have enabled such support, and we welcome such extensions, but we still do not provide support here for monorepo structured projects. with your use of pnpm, it is likely that you have pnpm specific references that the npm cli does not understand when attempting to publish. the important thing to note here is that the npm plugin specifically uses the npm cli, not the pnpm cli. you might have success if you wanted to put the effort into creating a pnpm plugin to use instead of the npm one, but again that goes beyond what we provide support for here.

@prisis
Copy link

prisis commented May 23, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants