https://kotlinlang.org logo
Title
l

Lynnea Tan

01/24/2023, 12:51 AM
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

Big Chungus

01/24/2023, 8:50 AM
What do you mean? Do you want to run it without passing in npm secrets and still pass the build?
l

Lynnea Tan

01/24/2023, 9:19 PM
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

Big Chungus

01/25/2023, 12:59 AM
Still not sure what you're trying to do. There's generic gradle mechanism of skipping tasks via onlyIf{} dsl if that helps