Skip to content

fix(ci): make publish idempotent, fix stale tags, run tests on all PR pushes#7

Merged
Generalsimus merged 1 commit into
mainfrom
fix/ci-retry-safe-publish
May 9, 2026
Merged

fix(ci): make publish idempotent, fix stale tags, run tests on all PR pushes#7
Generalsimus merged 1 commit into
mainfrom
fix/ci-retry-safe-publish

Conversation

@Generalsimus

Copy link
Copy Markdown
Owner

Changes

publish.yml

Stale tag cleanup — if a previous run failed after creating the tag but before pushing, the next retry would fail with fatal: tag 'vX.X.X' already exists. The bump step now deletes the stale local and remote tag before recreating it.

Idempotent publish — if a previous run published to npm but failed before pushing the git tag/commit, the next retry would fail with You cannot publish over the previously published versions. The publish step now checks the npm registry first and skips if the version already exists.

RELEASE_TOKEN — uses a classic PAT to push the version bump commit to main, which is required to bypass the branch protection ruleset.

test.yml

Removed types: [ opened ] so the "Run Jest Tests" check runs on every push to a PR, not only when the PR is first opened. Without this, the check gets permanently stuck as "Waiting for status to be reported" whenever new commits are pushed to an open PR.

@Generalsimus Generalsimus merged commit ebeca4b into main May 9, 2026
1 check passed
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