Skip to content

Extract a shared publish-npm.yml reusable workflow #29

Description

@mairas

The npm-publish job is now duplicated verbatim across halos-org/skip (release.yml) and hatlabs/signalk-halpi (release.yml): corepack pin (npm@11.14.1), the npm view <pkg>@$VERSION existence check, checkout/setup-node/build/publish via OIDC trusted publishing. shared-workflows exists to host reusable CI, and everything else in the triad (pr-checks, build-release) is centralized — the npm-publish job is the one piece copy-pasted into a second repo, so the pinned npm version and publish recipe now have to be bumped in N places.

Proposal: add publish-npm.yml (inputs: package-name, node-version) and have both skip and signalk-halpi call it, matching how build-release/pr-checks are shared.

Surfaced in the review of halos-org/skip#228 (maintainability, P3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions