Comments (6)
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.
Hi @paulpach! What versions of the semantic-release-monorepo
and each of the plugins are you running?
from semantic-release-monorepo.
Closing due to inactivity. Feel free to reopen if you have more information
from semantic-release-monorepo.
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.
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.
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)
- get the releasing workspace HOT 1
- Non-javascript project generates new version for every package HOT 2
- semantic-release-monorepo is updateing the version of both apps when only one app was updated. HOT 2
- Node 16/18 support HOT 1
- [Question] different .releaserc files HOT 1
- [Bug]: analyzeCommits doesn't run monorepo login on newer commit HOT 4
- chore: remove $ from command HOT 1
- Problem with resolving `pnpm`'s `workspace:*` references HOT 3
- Commit analyzation doesn't pick up any commits to release HOT 3
- node 18 support HOT 4
- ERR_REQUIRED_ESM error with semantic-release/gitlab HOT 11
- ERR_REQUIRED_ESM error with multiple plugin packages HOT 8
- Failure when multiple packages are published in one commit due to Git conflict HOT 1
- Github doesn't correctly identify and push the tags for release to my repository HOT 1
- Configure for multiple package roots? HOT 7
- ESM Version does not work HOT 4
- Error: __dirname is not defined HOT 1
- --no-git-tag-version --allow-same-version' after upgrading to version 8.0.2
- Branch name becomes undefined once a release happen in a previous package HOT 1
- release.config.js or .releaserc.js is not inherited by sub-directories/packages on semantic-release v23 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from semantic-release-monorepo.