-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Labels
Description
Current Behavior
When releasing, npm dist-tag add is always being called even if the package is not published. This is causing release to fail with error:
npm dist-tag add error:
npm dist-tag add stdout:
{}
Expected Behavior
To only call dist-tag add when there is something to update.
GitHub Repo
No response
Steps to Reproduce
using this nx config, run nx release in a monorepo with multiple packages.
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
"!{projectRoot}/.storybook/**/*",
"!{projectRoot}/tsconfig.storybook.json"
],
"sharedGlobals": []
},
"targetDefaults": {
"@nx/angular:package": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
},
"@nx/jest:jest": {
"cache": true,
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
"options": {
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
},
"build-storybook": {
"cache": true,
"inputs": ["default", "^production", "{projectRoot}/.storybook/**/*", "{projectRoot}/tsconfig.storybook.json"]
},
"@angular-devkit/build-angular:browser": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
}
},
"release": {
"versionPlans": {
"ignorePatternsForPlanCheck": [
"*/**/*.spec.ts",
"**/*.stories.ts",
"**/.storybook/**/*",
"**/*.md",
"jest.config.ts",
"**/test-setup.ts"
]
},
"version": {
"preVersionCommand": "pnpm dlx nx run-many -t build",
"preserveLocalDependencyProtocols": false
},
"projectsRelationship": "independent",
"git": {
"commit": true,
"tag": false,
"push": true,
"commitMessage": "chore(release): publish [skip ci]"
},
"changelog": {
"projectChangelogs": true,
"workspaceChangelog": true,
"commit": true
},
"groups": {
"apps": {
"projects": ["apps/*"],
"docker": {
"skipVersionActions": true,
"registryUrl": "ghcr.io/fathom-io"
},
"version": {
"groupPreVersionCommand": "pnpm dlx nx run-many -t docker:build"
}
},
"libs": {
"projects": ["libs/*"]
}
}
},
"generators": {
"@nx/angular:library": {
"linter": "eslint",
"unitTestRunner": "jest"
},
"@nx/angular:component": {
"style": "sass"
}
},
"plugins": [
{
"plugin": "@nx/docker",
"options": {
"buildTarget": {
"name": "docker:build",
"args": ["--build-context dist=../../dist"]
},
"runTarget": {
"name": "docker:run"
}
}
}
]
}Nx Report
Node : 24.5.0
OS : darwin-arm64
Native Target : aarch64-macos
pnpm : 10.26.0
nx : 22.3.3
@nx/js : 22.3.3
@nx/eslint : 22.3.3
@nx/workspace : 22.3.3
@nx/angular : 22.3.3
@nx/jest : 22.3.3
@nx/cypress : 22.3.3
@nx/devkit : 22.3.3
@nx/module-federation : 22.3.3
@nx/rspack : 22.3.3
@nx/storybook : 22.3.3
@nx/web : 22.3.3
@nx/webpack : 22.3.3
@nx/docker : 22.3.3
typescript : 5.8.3
---------------------------------------
Registered Plugins:
@nx/docker
---------------------------------------
Community plugins:
@compodoc/compodoc : 1.1.32
@storybook/angular : 10.1.9
angular-eslint : 20.7.0
---------------------------------------
Cache Usage: 325.05 MB / 92.64 GBFailure Logs
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response