-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail dry run deploy if version already exists in the registry #508
Comments
Hi @ianldgs This plugin intends to be a wrapper around I suggest a verification step before you run the target "verify-version-already-on-the-registry": {
"executor": "nx:run-commands",
"options": {
"command": "./tools/your-script-to-verify-versions.sh"
},
},
"deploy": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public"
},
"dependsOn": ["verify-version-already-on-the-registry"]
} Another suggestion I could bring is to use You can see the real example on our Here is how it looks in the CI. https://github.com/bikecoders/ngx-deploy-npm/actions/runs/5060100711/jobs/9082656207 |
@ianldgs, Something else that we could do is add an extra param to work along with the It would be something like |
@edbzn your input is always welcome. |
@dianjuar yes, we use jscutlery/semver. But look at this comment: jscutlery/semver#444 (comment) I like the idea of implementing the check in this plugin. It would give people one more tool to make their setup more resilient. |
It would be nice to do something like
npm diff | grep version -q
in--dryRun
mode, as suggested in npm/cli#4927, to help checking if a version would fail deploy.We do a
deploy --dryRun
in PRs, and a regulardeploy
when merged. Sometimes the merged version fails due to it already existing in the registry.The text was updated successfully, but these errors were encountered: