Skip to content

ci: single release workflow (no release PAT needed) - #3

Open
yuraoak wants to merge 4 commits into
mainfrom
ci/single-release-workflow
Open

yuraoak wants to merge 4 commits into
mainfrom
ci/single-release-workflow

Conversation

@yuraoak

@yuraoak yuraoak commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What

Replaces the three-workflow chain (auto-tagpublish-npm / publish-pypi) with a single release.yml that versions, tags and publishes both packages in one run — same model as lizard-cli.

Why

auto-tag pushed the tag with the default GITHUB_TOKEN, and GitHub does not let that token trigger other workflows. So tags v0.1.9..v0.1.12 were created but publish-npm / publish-pypi never ran — PyPI stuck at 0.1.8, npm at 0.1.7. Folding publish into the same run removes the trigger gap, so no release PAT is needed.

Before you merge

  • Update the PyPI trusted publisher for lizard-sdk: workflow filename publish-pypi.ymlrelease.yml (owner lizard-build, repo lizard-sdk). Otherwise the PyPI step of the first run fails on OIDC. pypi.org → project lizard-sdk → Settings → Publishing.
  • Confirm the NPM_TOKEN secret is still valid — npm lagged a version behind PyPI, so the 0.1.8 npm publish likely failed.

On merge

The workflow runs, bumps to v0.1.13 (last tag is v0.1.12) and publishes 0.1.13 to both registries — shipping the lizard.build default fix. The bump commit is marked [skip ci] so it does not re-trigger.

RELEASE_PAT is no longer needed — no need to create it, and the earlier fallback went away with auto-tag.yml.

Co-authored with Claude Opus 4.8.

yuraoak and others added 4 commits July 21, 2026 23:14
Replaces auto-tag + publish-npm + publish-pypi. Publishing now happens in
the same run that creates the tag, so we no longer depend on a tag push
triggering a separate workflow — which the default GITHUB_TOKEN can't do.
No release PAT needed. Same model as lizard-cli's release.yml.

npm keeps using NPM_TOKEN (no trusted publisher configured for the SDK);
PyPI keeps using OIDC.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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