Hey folks! I'm trying to use the npm plugin to pub...
# npm-publish
l
Hey folks! I'm trying to use the npm plugin to publish our kmp project to NPM and I was wondering if there was a way to configure the
publishJsPackageToNpmjsRegistry
task to not fail a build?
b
What do you mean? Do you want to run it without passing in npm secrets and still pass the build?
l
Ahh, more specifically I want to not fail the build if I try and publish the same version twice. For context every time I merge into main in there isn't always going to be a new version and I don't want to fail the build just because we're not publishing to NPM.
b
Still not sure what you're trying to do. There's generic gradle mechanism of skipping tasks via onlyIf{} dsl if that helps