Comments (8)
relative issue: npm/cli#4367
from npm.
given that issue in npm, this sounds unrelated to the npm plugin for semantic-release specifically. can this issue be closed, or is there something i'm overlooking that relates it specifically to this plugin?
from npm.
given that issue in npm, this sounds unrelated to the npm plugin for semantic-release specifically. can this issue be closed, or is there something i'm overlooking that relates it specifically to this plugin?
maybe you can try catch this error here? https://github.com/semantic-release/npm/blob/master/lib/prepare.js#L22
from npm.
could you help me understand the context of the situation where this would happen when publishing a release? why are linked packages involved in your release pipeline?
from npm.
could you help me understand the context of the situation where this would happen when publishing a release? why are linked packages involved in your release pipeline?
when before publish, npm version
is called to upgrade package version (https://github.com/semantic-release/npm/blob/master/lib/prepare.js#L10). In npm v7, it works well. But in npm v8, npm use @npmcli/arborist
during npm version
. @npmcli/arborist
package causes the error, but version actually is bumped. So I think it can be try catch.
from npm.
semantic-release is used by many to publish packages using npm v8. i'm trying to understand what is different about your project that results in this error. the issue you linked to suggests it is related to linked packages, but you havent answered my question about my there are linked packages in your project when releasing.
from npm.
semantic-release is used by many to publish packages using npm v8. i'm trying to understand what is different about your project that results in this error. the issue you linked to suggests it is related to linked packages, but you havent answered my question about my there are linked packages in your project when releasing.
i use pnpm workspace for a monorepo(here it is: https://github.com/arvinxx/gitmoji-commit-workflow ). and pnpm use link package to relate package.
from npm.
ah, ok. that makes sense. semantic-release does not officially support monorepos because of the additional complexity it can add, such as this situation. we attempt to avoid breaking the ability to build monorepo support on top of our core, like with multi-semantic-release
, but solving monorepo specific use cases is out of scope for this project.
without npm providing more information about the reason for the failure, there isnt much that we could do in this plugin if we were to catch the error because we wouldnt be able to distinguish from other errors that should be handled in other ways.
the issue referenced above mentions a recommended fix within project impacted by this situation. it may be possible for multi-semantic-release
to handle configuring your project according to that recommendation. regardless, this appears to be more related to npm and multi-semantic-release
in the context of your pnpm project. since that is a configuration that is out of scope for this project, i'm going to close this issue. it may make more sense to open an issue against multi-semantic-release
instead.
from npm.
Related Issues (20)
- Provenance support not working? HOT 1
- npm whoami failing HOT 3
- `package.json` version not updated, despite correct plugin ordering HOT 1
- Set --no-workspaces with npm version HOT 2
- Command failed with exit code 1: npm version 0.22.2 --userconfig HOT 2
- error on publishing HOT 1
- Publishing failed since update from [email protected] to [email protected] with files mentioned in .gitignore HOT 6
- Update a package.json in a sub folder
- CVE-2023-42282 HOT 1
- Support for custom package.json properties to write changelist entries
- NPM Audit Signatures issue on 11.0.3 HOT 2
- Failed step "prepare" of plugin "@semantic-release/npm" due to reading malformed path HOT 13
- ERR_INVALID_AUTH triggered by semantic-release npm despite not having this field set in checkout directory HOT 11
- semantic-release seems publishing twice and causing error. HOT 1
- Security Issue with out of date [email protected] found with SNYK HOT 3
- Array format/style is being changed HOT 3
- improve auth token resolution
- align approach for concatenating `.npmrc` files to better align with default npm behavior
- account for deprecation of `_auth` in existing `.npmrc` files
- Cannot set properties of null (setting 'peer') HOT 4
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 npm.