Skip to content

build(ci): publish dev-tag canary releases on master push #163

Description

@marcstraube

Context

Consuming unreleased changes in other projects currently means waiting for a stable release. A dev-tag canary stream lets downstream projects pull the latest master build immediately:

pnpm add @zappzarapp/browser-utils@dev

Proposal

Extend the publish flow to push a prerelease canary on every push to master, without touching the latest tag:

  • Build, then npm publish --tag dev --provenance (reuse the existing OIDC trusted-publishing setup from release-please.yml).
  • Version scheme that never collides with release-please's stable versions, e.g. 0.0.0-dev.<short-sha> (or <next>-dev.<run_number>).
  • Skip on release-please's own release commits (the stable publish already runs).
  • Leave dist-tags.latest untouched; only move dist-tags.dev.

Acceptance

  • pnpm add @zappzarapp/browser-utils@dev installs the latest master build
  • dist-tags.latest is never changed by canary runs
  • Canary builds carry provenance
  • No canary publish on stable release commits

Follow-up from the 2.1.0 release discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions