You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setup:
An Nx repo using npm, conventional commits, projectRelationship is independent, built to a dist folder
Has projects A, B and C where A depends on B and B depends on C using file references
Make a patch change to project A and commit
Run nx release --yes --verbose=true
The publish process fails with error Error: Cannot publish package "@at/wp-renovate-mono-lib-b" because it contains a local dependency protocol in its "dependencies", and your package manager is npm.
Expected Behavior
The package.json file for project B has the file ref substituted with the current version but skips publishing because it already exists in the registry.
NX Successfully ran target build for 3 projects
Nx read the output from the cache instead of running the commandfor 2 out of 3 tasks.
NX Running release version for project: wp-renovate-mono-lib-c
wp-renovate-mono-lib-c 🔍 Reading data for package "@at/wp-renovate-mono-lib-c" from dist/packages/wp-renovate-mono-lib-c/package.json
wp-renovate-mono-lib-c 📄 Resolved the current version as 2.0.5 from git tag "wp-renovate-mono-lib-c-2.0.5".
wp-renovate-mono-lib-c 🚫 No changes were detected using git history and the conventional commits standard.
wp-renovate-mono-lib-c 🚫 Skipping versioning "@at/wp-renovate-mono-lib-c" as no changes were detected.
NX Running release version for project: wp-renovate-mono-lib-b
wp-renovate-mono-lib-b 🔍 Reading data for package "@at/wp-renovate-mono-lib-b" from dist/packages/wp-renovate-mono-lib-b/package.json
wp-renovate-mono-lib-b 📄 Resolved the current version as 3.2.0 from git tag "wp-renovate-mono-lib-b-3.2.0".
wp-renovate-mono-lib-b 🚫 No changes were detected using git history and the conventional commits standard.
wp-renovate-mono-lib-b 🚫 Skipping versioning "@at/wp-renovate-mono-lib-b" as no changes were detected.
NX Running release version for project: wp-renovate-mono-lib-a
wp-renovate-mono-lib-a 🔍 Reading data for package "@at/wp-renovate-mono-lib-a" from dist/packages/wp-renovate-mono-lib-a/package.json
wp-renovate-mono-lib-a 📄 Resolved the current version as 5.3.13 from git tag "wp-renovate-mono-lib-a-5.3.13".
wp-renovate-mono-lib-a 📄 Resolved the specifier as "patch" using git history and the conventional commits standard.
wp-renovate-mono-lib-a ✍️ New version 5.3.14 written to dist/packages/wp-renovate-mono-lib-a/package.json
UPDATE dist/packages/wp-renovate-mono-lib-a/package.json
"name": "@at/wp-renovate-mono-lib-a",
- "version": "5.3.13",
+ "version": "5.3.14",
"dependencies": {
}
+
Skipped lock file update because npm workspaces are not enabled.
NX Staging changed files with git
Will not add the following files because they are ignored by git:
dist/packages/wp-renovate-mono-lib-a/package.json
No files to stage. Skipping git add.
NX Falling back to ts-node forlocal typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX Falling back to ts-node forlocal typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX Generating an entry in packages/wp-renovate-mono-lib-a/CHANGELOG.md for wp-renovate-mono-lib-a-5.3.14
NOTE: There was no diff detected for the changelog entry. Maybe you intended to pass alternative git references via --from and --to?
NX Falling back to ts-node forlocal typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX Falling back to ts-node forlocal typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX No changes detected for changelogs
No changes were detected for any changelog files, so no changelog entries will be generated.
NX Committing changes with git
Committing files in git with the following command:
git commit --message chore(release): publish --message - project: wp-renovate-mono-lib-a 5.3.14
No staged files found. Skipping commit.
NX Tagging commit with git
Tagging the current commit in git with the following command:
git tag --annotate wp-renovate-mono-lib-a-5.3.14 --message wp-renovate-mono-lib-a-5.3.14
NX Falling back to ts-node forlocal typescript execution. This may be a little slower.
- To fix this, ensure @swc-node/register and @swc/core have been installed
NX Running target nx-release-publish for 3 projects:
- wp-renovate-mono-lib-a
- wp-renovate-mono-lib-b
- wp-renovate-mono-lib-c
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> nx run wp-renovate-mono-lib-c:nx-release-publish
Added the dist-tag latest to v2.0.5 for registry http://localhost:4873/.
> nx run wp-renovate-mono-lib-b:nx-release-publish
Error: Cannot publish package "@at/wp-renovate-mono-lib-b" because it contains a local dependency protocol in its "dependencies", and your package manager is npm.
Please update the local dependency on "@at/wp-renovate-mono-lib-c" to be a valid semantic version (e.g. using `nx release`) before publishing, or switch to pnpm as a package manager, which supports dynamically replacing these protocols during publishing.
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Running target nx-release-publish for 3 projects failed
Tasks not run because their dependencies failed or --nx-bail=true:
- wp-renovate-mono-lib-a:nx-release-publish
Failed tasks:
- wp-renovate-mono-lib-b:nx-release-publish
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Actually ignore last comment. It doesn't work in 19.7.0. It does publish the package, but leaves the file refs in the dependencies rather than replacing them with the actual versions.
Current Behavior
Setup:
An Nx repo using npm, conventional commits, projectRelationship is independent, built to a dist folder
Has projects A, B and C where A depends on B and B depends on C using file references
nx release --yes --verbose=true
Error: Cannot publish package "@at/wp-renovate-mono-lib-b" because it contains a local dependency protocol in its "dependencies", and your package manager is npm.
Expected Behavior
The package.json file for project B has the file ref substituted with the current version but skips publishing because it already exists in the registry.
GitHub Repo
https://github.com/brogueady/nx-test
Steps to Reproduce
npm install
nx local-registry
nx release --yes --verbose
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: