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
Github actions tests always fail #121
Comments
I also "suspended" renovate |
I believe I've resolved the issue. It took me an embarrassingly long amount of time to realize the ultimate problem wasn't with
Summary on how we need to fix this issue in the other repos
|
My testing exposed a race condition.
Guaranteed to fail. Release-it will try to push and it'll be rejected because of upstream changes. This is problematic for multiple reasons.
This happened a few times to me during testing. Ultimately it was often caused by renovate's auto-merge. Build failed -> I fixed it -> pushed fix -> while build was in process renovate auto-reverted to an older version -> build failed and all future builds fail until the package.json has the same version as latest on NPM. My choices to fix it were: wait for a new version of the npm package (or force one) or manually update the version in package.json |
[X] new bot user
[X] Work around npm/cli#2834
[X] Working publish
npm/cli#2834
TL;DR A bug in NPM and a lack of support for an alternative approach in
release-it
left me to use it weirdly to work around the bug.This one is nasty. Turns out that a bug in npm causes publish to fail if
publishConfig
is inpackage.json
. That configuration cannot go in.npmrc
.release-it
doesn't support sending in arbitrary command line arguments to the npm publish command and doesn't support the settingaccess
via the configuration. So I looked through the source and found that here: https://github.com/release-it/release-it/blob/2ccf01fd242309840020cfa82034ade4851c6cf7/lib/plugin/npm/npm.js#L232 it runsnpm publish ${publishPath}
using the publishPath option fromrelease-it.json
's npm config block.So I set it up to pass in
. --access=public
instead of null which defaults to.
turning the command to:npm publish . --access=public
The text was updated successfully, but these errors were encountered: