INNER CODE UNIT · Python
publish_npm
jpush/jpush-react-native · .claude/skills/update-sdk/scripts/publisher.py:82
def publish_npm() -> bool:
print("\n[npm] Publishing ...")
ok, out = run(["npm", "publish"])
if ok:
print(" ✅ Published to npm")
return True
print(f" ERROR: npm publish failed:\n{out}")
return False
def publish_dart() -> bool:
print("\n[dart] Publishing to pub.dev ...")
ok, out = run(["dart", "pub", "publish", "--force"])
if ok:
print(" ✅ Published to pub.dev")
return True
print(f" ERROR: dart pub publish failed:\n{out}")
return False