code: def publish_npm_package(
      config: Config, system: System
  ) -> ActionReturn:
      tarball = f"bokeh-bokehjs-{config.js_version}.tgz"
      tags = "--tag=dev" if config.prerelease else ""
      try:
          system.cd(f"deployment-{config.version}")
          system.run(f"npm publish --access=public {tags} {tarball}")
          system.cd("..")
          return PASSED("Publish to npmjs.com succeeded")
      except RuntimeError as e:
          return FAILED(
              "Could NOT publish to npmjs.com", details=e.args
          )
  
file_path: bokeh/release/deploy.py
imports: from __future__ import annotations
  from .action import FAILED, PASSED, ActionReturn
  from .config import Config
  from .system import System
label_desc: Use image node_id 1 for calling a global function with example usage: publish_npm_package(config, system) and returns: PASSED, FAILED