# A package couldn't be published

What "couldn't publish" means for axle release publish and how to fix it.

```text
error: couldn't publish ui@1.4.0: pnpm publish --no-git-checks exited with exit code: 1
hint: Fix what it printed, then run axle release publish again; the versions the registry already has are skipped.
```

## Why it happens

[`axle release publish`](https://axlers.dev/docs/reference/release.md#publishing) 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`, `.npmrc` or `npm_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 `origin` points to, so it doesn't know where to create the release.

## 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`.
