release:tag: a rerun after a rejected tag push stops on the local action-v tag

Ouverte
#279 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@FredApps y travaille déjà.

Depuis le 17/11/2026.

  • #280 par @FredApps — ouverte

Évaluation

Difficulté
1/5
Temps estimé
1-3 heures
Accessibilité débutants
20/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
git, node.js, typescript
Domaine
cli, release

Piste de recherche

Read scripts/release-tags.mjs and inspect how it creates the annotated action-v<version> tag compared with the other two tags. The issue gives a reproduction using version 9.9.9; check the script's behavior after those local tags exist. Done means rerunning the command can push all three tags after a rejected push, while the existing remote tag checks remain in place. An open linked pull request (#280) indicates work is already underway.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

npm run release:tag (scripts/release-tags.mjs) creates the three release tags locally, then pushes them in one atomic push. When that push is rejected (network error, a protected-tag rule, a missing permission), the tags it created stay in the local clone. Running the command again then stops before pushing anything:

fatal: tag 'action-v9.9.9' already exists

The v<version> and cli-release-v<version> tags are created with git tag -f, so they are replaced on a rerun. The annotated action-v<version> tag is created with git tag -a and no -f, so it is not. The only way out is to delete the local tag by hand, even though the script's header says reruns are expected ("The workflow accepts tags that already exist").

Reproduce
  1. In a clone whose origin has the release commit on main and no release tags, create the local tags a rejected push leaves behind: git tag v9.9.9, git tag -a action-v9.9.9 -m x and git tag cli-release-v9.9.9, with packages/diffci-cli/package.json at version 9.9.9.
  2. Run node scripts/release-tags.mjs.

Expected: the three tags are pushed at HEAD. Actual: fatal: tag 'action-v9.9.9' already exists, and nothing is pushed.

The tags on origin are still checked before anything is created, so passing -f to the annotated tag only replaces a local tag that was never published.

Langage dominant
TypeScript
Étoiles
0
Forks
4
Merge moyen
18 h 41 min
PR mergées (30 j)
48

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de DiffCI/core

Toutes les issues de DiffCI/core

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.