A package couldn't be published
error: couldn't publish [email protected]: pnpm publish --no-git-checks exited with exit code: 1hint: Fix what it printed, then run axle release publish again; the versions the registry already has are skipped.Why it happens
Section titled “Why it happens”axle release publish stopped at one of its steps:
- The package manager failed to publish. Its own output, printed above the error, says why: often a missing or expired token, or a name the registry account can’t publish.
- The registry couldn’t be asked. Axle asks it whether it already has each version before publishing, and its address, from
publishConfig,.npmrcornpm_config_registry, couldn’t be reached or answered with an error. - The GitHub or GitLab release couldn’t be created. The API answered with an error, often because the token can’t create releases or the tag isn’t pushed yet.
- Axle couldn’t tell which repository
originpoints to, so it doesn’t know where to create the release.
How to fix it
Section titled “How to fix it”Fix what the message and the package manager’s output say, then run axle release publish again. Packages the registry already has and releases that are already there are skipped, so nothing is published twice. Push the tags with git push --follow-tags before publishing, and check git remote get-url origin.