Skip to content

Run release builds in bash and publish failed tags again. - #42

Merged
angelrdavila merged 2 commits into
mainfrom
angel/lyra-release-artifacts-version-8df310
Nov 24, 2026
Merged

angelrdavila merged 2 commits into
mainfrom
angel/lyra-release-artifacts-version-8df310

Conversation

@angelrdavila

@angelrdavila angelrdavila commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

What changed

  • Root cause fix. Windows runners default to PowerShell, where "$SCRIPT" is an empty PowerShell variable, not the env var. pnpm --filter lyra run "" only lists the scripts and exits 0, so the Windows job built nothing, its upload failed, fail-fast cancelled macOS and Linux, and publish was skipped. That happened to both v0.2.0 and v0.3.0, so releases/latest (and the in-app updater) is still v0.1.2. release.yml now sets defaults.run.shell: bash for every step.
  • Recover a failed release. workflow_dispatch takes an optional tag. Given one, it checks out that tag's source, builds it with this workflow (including the pre-Turborepo layout of v0.2.0), attests it and publishes the missing release. It is marked latest only if it is the newest stable tag, and a tag that already has a release is refused. Without a tag, a manual run still builds and attests without publishing.
  • fail-fast: false, so one platform failing doesn't hide the others.
  • docs/RELEASING.md: a "A release that failed" section, and the manual release-candidate build step now says it is the only build before the tag.
  • Patch changeset for v0.3.1.

Installers are still built only from a version tag or a manual run. An earlier commit here also built them on PRs. I dropped that because the Release PR is updated on every merge to main, which would have rebuilt all three installers on nearly every merge.

How it was verified

  • Failed runs for v0.2.0 (44858812159) and v0.3.0 (45297225572) both show pnpm run "" printing the script list under pwsh, then No files were found.
  • I extracted the Version step script and ran it locally against git archive of v0.2.0, v0.3.0, v0.1.2 and HEAD:
    • v0.2.0 gives app . and not latest.
    • v0.3.0 gives apps/lyra and latest.
    • v0.1.2 is refused because it already has a release.
    • A manual run without a tag gives no tag.
    • A tag with shell characters is refused.
  • pnpm check passes.
  • Run 45313087998, from this PR's first commit, builds all three platforms with the same build steps in bash. It is the end-to-end check for the Windows fix.

- Windows steps ran in PowerShell, where "$SCRIPT" is empty: `pnpm run ""` built nothing, so
  v0.2.0 and v0.3.0 never published. Every release step now runs in bash.
- release.yml builds all three installers (no publish) on PRs that touch packaging, including
  every Release PR, so a broken build fails before its tag exists.
- A manual run given a tag builds that tag's source and publishes its missing release, marked
  latest only if it is the newest version.
- Platforms no longer cancel each other on failure.
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
lyra Ignored Ignored Preview Nov 24, 2026 2:35am UTC

- The Release PR is updated on every merge to main, so building it would package all three
  installers on nearly every merge. Releases stay the only automatic build.
- A manual run without a tag attests again, as before.
@angelrdavila angelrdavila changed the title Run release builds in bash and build installers on Release PRs. Run release builds in bash and publish failed tags again. Nov 24, 2026
@angelrdavila
angelrdavila merged commit 9b348fe into main Nov 24, 2026
6 checks passed
@angelrdavila
angelrdavila deleted the angel/lyra-release-artifacts-version-8df310 branch November 24, 2026 02:37
@angelrdavila angelrdavila mentioned this pull request Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant