question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tag project-x.y.z exists locally but has not been pushed

See original GitHub issue

Hi guys,

I’m having the same error similar to this issue: #461

error: tag project-x.y.z exists locally but has not been pushed

 "release": {
            "executor": "@jscutlery/semver:version",
            "options": {
                "push": true,
                "postTargets": ["project:github"]
            }
        },
  "github": {
      "executor": "@jscutlery/semver:github",
      "options": {
        "tag": "${tag}",
        "notesFile": "./apps/angular/project/CHANGELOG.md"
      }
  }

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AndriiTsokcommented, Aug 20, 2022

We are experiencing the same issue. Seems like the Github action tries to create the same tag for Github release.

> nx run apps-corporate:version

[apps-corporate] 🟠 No previous version tag found, fallback to version 0.0.0.
        New version will be calculated based on all changes since first commit.
        If your project is already versioned, please tag the latest release commit with apps-corporate@x.y.z and run this command again.
[apps-corporate] 🆕 Calculated new version "0.1.0".
[apps-corporate] 📜 Generated CHANGELOG.md.
[apps-corporate] 📦 Committed "chore(apps-corporate): release version 0.1.0".
[apps-corporate] 🔖 Tagged "apps-corporate@0.1.0".
Error: tag apps-corporate@0.1.0 exists locally but has not been pushed to XXX/Monorepo, please push it before continuing or specify the `--target` flag to create a new tag

    at /home/runner/work/Monorepo/Monorepo/node_modules/@jscutlery/semver/src/executors/common/exec.js:10:34
    at ChildProcess.exithandler (node:child_process:406:5)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
[apps-corporate] ❌ Error: Something went wrong with post-target "apps-corporate:github".
    at /home/runner/work/Monorepo/Monorepo/node_modules/@jscutlery/semver/src/executors/version/utils/post-target.js:[22](https://github.com/XXX/Monorepo/runs/7928604381?check_suite_focus=true#step:6:23):[27](https://github.com/XXX/Monorepo/runs/7928604381?check_suite_focus=true#step:6:28)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/Monorepo/Monorepo/node_modules/tslib/tslib.js:115:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
0reactions
samuelfernandezcommented, Dec 3, 2022

@AndriiTsok that was a fast answer, thanks so much! Would it be useful to explain that in the readme and config examples for github builder?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Updates were rejected because the tag already exists" when ...
Right-click the tag and choose to delete it (be sure to uncheck the ... (Fetch and store all tags locally does not have...
Read more >
ERROR fatal: tag already exists · Issue #573 - GitHub
Based on the circumstances, release-it rolls back the changes locally. These can be force-pushed before trying again. Additionally, a few things ...
Read more >
User Guide - gerrit-review
Each feature should be implemented in its own local feature branch that is based on the current HEAD of the target branch. This...
Read more >
Just added a tag to my commit but doesn't show up ...
I just add a commit and pushed it to my master branche 1. did git add [files] 2. did ... 6. went to...
Read more >
Protected branches doesn't protect correctly when pushing tags!
git tag vX.Y.Z; git push --tags causes code somehow to pass repository even when master branch is in protected state.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found