8000 release: publish a 3.0.0-alpha prerelease from the v3 branch · Issue #28 · project-minigraf/minigraf-wasm · GitHub
[go: up one dir, main page]

Skip to content

release: publish a 3.0.0-alpha prerelease from the v3 branch #28

Backlog

Description

@adityamukho

Core's cascade.yml dispatches core-release for any tag matching v[0-9]*.[0-9]*.[0-9]*, so tagging v3.0.0-alpha in core triggers this repo's release.yml. As written, that release would not produce a correct 3.0.0-alpha package:

  • Builds from the default branch, whatever the major. The prepare job checks out the default branch and pins it to the dispatched core version. Decided in policy: define what a v3 prerelease (3.0.0-alpha) promises minigraf#928: the alpha is the first v3 release and the branch move (release: move v3 to main and main to v2.x at the 3.0.0-alpha minigraf#937, v3 → main, main → v2.x) is done before the alpha is tagged. After the move a 3.x dispatch builds from main (correct), but a 2.x dispatch must build from v2.x, not main. Choose the branch from the dispatched major.

  • The pin step doesn't match v3's dependency line. The two sed commands expect minigraf = "…" or minigraf = { … version = "…" }. On v3 (the future main) the line is minigraf = { git = "…", rev = "…" }, so neither matches and the release would keep the git dependency.

  • The tag job fast-forwards main ($SHA:refs/heads/main). That is right for a 3.x release after the move; a 2.x release built from v2.x must update v2.x, not main.

  • npm publish has no --tag. A 3.0.0-alpha publish would become latest (npm install PKG would install the alpha), and newer npm releases refuse a prerelease without an explicit tag. Publish prereleases with --tag next, and leave latest on 2.x.

  • verify-published.yml should install the exact version (PKG@3.0.0-alpha), not the dist-tag.

  • Both @minigraf/browser and @minigraf/wasi are published by this workflow; both need the dist-tag handling. Browser WASM is Tier 1 from v3.0.0, so it must publish with the alpha (#928).

  • The inspected workflow publishes npm packages and Git tags, not a WASI GitHub Release. If the publication mechanism changes, verify prerelease classification separately.

Decided in project-minigraf/minigraf#928 (2026-11-30): the version is 3.0.0-alpha; later prereleases are -beta, -rc1, -rc2, … (PyPI 3.0.0a0, 3.0.0b0, 3.0.0rc1). The alpha is the first v3 release and triggers the branch move (project-minigraf/minigraf#937), with v2.x as the maintenance branch. Every binding, Tier 2 included, publishes the alpha in lock-step with core (#928, docs in project-minigraf/minigraf#945).

Found during the 3.0.0-alpha readiness check (no release was attempted).

Additional channel and compatibility checks

  • Test the default-branch workflow against v2.x; the OPFS example check assumes a file absent on the v2 source. Keep the 3.x check and update the core-ref defaults.
  • Preserve Browser/WASI feature flags when replacing the Git dependency. Verify next and unchanged stable latest for both npm packages, including skip-existing retries. After v3 stable, publish subsequent v2 patches to a maintenance dist-tag (proposed v2) rather than moving latest backward.
  • Record the two-major dry run in release: rehearse both binding release lines and verify all seven alpha publications minigraf#960.

Activity

  1. adityamukho commented on Nov 29, 2026

    @adityamukho
    ContributorAuthor

    Correction (Codex review): there is no WASI GitHub Releases artifact to mark as a prerelease. This workflow only publishes npm packages, and core's cargo-dist builds native targets only. The core README's claim of one is tracked in project-minigraf/minigraf#933. npm wording: the outcome of npm publish without --tag for a prerelease depends on the npm version, so treat it as a missing explicit channel. consumer-test/run.sh:57 already installs the exact version; keep that as an acceptance check.

  2. adityamukho commented on Nov 30, 2026

    @adityamukho
    ContributorAuthor

    Release rehearsal and publication checks for this binding are tracked in project-minigraf/minigraf#960. Its "Before tagging" checklist (7 bindings × the 3.x and 2.x source lines, no writes or publishing, recorded per path) is part of the acceptance criteria for the binding release-workflow mission that fixes this issue.

  3. adityamukho commented on Dec 1, 2026

    @adityamukho
    ContributorAuthor

    The release workflow changes are merged (#30 on v3; #29 on the 2.x line). Both source lines passed the pre-move rehearsal (3.x against core candidate 38b10383, 2.x against registry 2.0.12), and verify-published from v3 passed against published 2.0.12: project-minigraf/minigraf#960 (comment)

    The ticked items are covered by those changes. No publication or recovery path has run on GitHub yet.

    Still open here, at publication (project-minigraf/minigraf#929): publish both packages with the alpha and verify next and an unchanged latest on both. Dist-tag handling and feature preservation are implemented; the maintenance tag is maintenance-v2, because npm rejects v2. Dist-tag repair needs "Allow npm dist-tag" on each trusted publisher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0