Skip to content

Action: publish-verdaccio

Deploys tarballs in ./signed-dist to Verdaccio with error handling.

Action Path: Trickle-Charge/TrickleCharge-Infra/.github/actions/publish-verdaccio@main

Inputs

Input Description Required Default
registry-url Verdaccio registry URL false https://npm.tricklecharge.dev

What It Does

  1. Scans staging directory: Checks ./signed-dist for .tgz archives. If no package files are present, logs that the pipeline is up to date and exits early with status 0.
  2. Iterates through artifacts: Loops over every .tgz archive found in ./signed-dist/.
  3. Publishes to registry: Executes npm publish for each tarball against the specified registry-url.
  4. Batches failure tracking: If an individual package upload fails, records the error and continues attempting to publish remaining packages rather than aborting immediately.
  5. Enforces pipeline status: Exits with status 1 at the end of execution if one or more package publishes failed.

Example Usage

- uses: Trickle-Charge/TrickleCharge-Infra/.github/actions/publish-verdaccio@main
  with:
    registry-url: ${{ inputs.registry-url }}