GithubHelp home page GithubHelp logo

Comments (6)

pmowrer avatar pmowrer commented on May 28, 2024 2

This configuration doesn't look valid to me - looks like a mix of the old a new semantic-release config formats. Please refer to the semantic-release docs on plugin configuration: https://semantic-release.gitbook.io/semantic-release/usage/plugins#plugins

You probably want something like this:

branches:
  - name: main
plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - - "@semantic-release/exec"
    - generateNotesCmd: "echo \"${nextRelease.notes}\" > CHANGELOG.md"

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 28, 2024

Hi @paulpach! What versions of the semantic-release-monorepo and each of the plugins are you running?

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 28, 2024

Closing due to inactivity. Feel free to reopen if you have more information

from semantic-release-monorepo.

devtribe avatar devtribe commented on May 28, 2024

Hi,

i got the same error at my project. The release File is quite minimalistic

branches:
  - name: main
plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - "@semantic-release/changelog"

The version are the newest. Just installed it.
Thanks

The Error

[3:46:26 PM] [semantic-release] › ✖  An error occurred while running semantic-release: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Object
    at validateString (internal/validators.js:120:11)
    at Module.require (internal/modules/cjs/loader.js:896:3)
    at require (internal/modules/cjs/helpers.js:74:18)
    at semantic-release-monorepo (/node_modules/semantic-release-plugin-decorators/src/wrapStep.js:41:24)
    at validator (.config/yarn/global/node_modules/semantic-release/lib/plugins/normalize.js:34:30)
    at /.config/yarn/global/node_modules/semantic-release/lib/plugins/pipeline.js:37:40
    at next (/.config/yarn/global/node_modules/p-reduce/index.js:17:9)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'ERR_INVALID_ARG_TYPE',
  pluginName: '[Function: semantic-release-monorepo]'
}
TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received an instance of Object
    at validateString (internal/validators.js:120:11)
    at Module.require (internal/modules/cjs/loader.js:896:3)
    at require (internal/modules/cjs/helpers.js:74:18)
    at semantic-release-monorepo (/projects/aoe/congstar/ci/microservice-deployment/node_modules/semantic-release-plugin-decorators/src/wrapStep.js:41:24)
    at validator (/.config/yarn/global/node_modules/semantic-release/lib/plugins/normalize.js:34:30)
    at /.config/yarn/global/node_modules/semantic-release/lib/plugins/pipeline.js:37:40
    at next (/.config/yarn/global/node_modules/p-reduce/index.js:17:9)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'ERR_INVALID_ARG_TYPE',
  pluginName: '[Function: semantic-release-monorepo]'
}

from semantic-release-monorepo.

pmowrer avatar pmowrer commented on May 28, 2024

Hi @devtribe,

Sorry to hear you're running into issues. Unfortunately, I wasn't able to reproduce using the config you provided. The error (which should be improved) suggests you have an invalid config - is it possible there's another conflicting config in your setup (perhaps under the release key in package.json or one of the other ways configs can be setup)?

from semantic-release-monorepo.

devtribe avatar devtribe commented on May 28, 2024

Hi,

you're right, SR used another .releaserc.

But i got the same error if i use @semantic-release/exec together with semantic-release-monorepo :(
I want to generate a Changelog for my Monorepo without the publishing step

Here is my config:

branches:
  - name: main
plugins:
  - "@semantic-release/commit-analyzer"
  - "@semantic-release/release-notes-generator"
  - path: "@semantic-release/exec"
    generateNotesCmd: "echo \"${nextRelease.notes}\" > CHANGELOG.md"

from semantic-release-monorepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.