X Version 1.0.0 is not tagged on GitHub!
-- NO TAG ----------------------------------------------------------------------
Packages must be tagged in git, but I cannot find a 1.0.0 tag.
These tags make it possible to find this specific version on GitHub.
To tag the most recent commit and push it to GitHub, run this:
git tag -a 1.0.0 -m "new release"
git push origin 1.0.0
The -m flag is for a helpful message. Try to make it more informative!
Following is the output from git when following the instructions:
> git tag -a 1.0.0 -m "Support elm publish"
fatal: tag '1.0.0' already exists
> git push origin 1.0.0
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
After this error message, I guess the that the remote suggested by elm publish is not right. When I adapt the git command to use the actual remote, it looks like pushing the tag works:
Thanks @joakin for the tip!
Yes that issue is related.
I applied the workaround described there and copied the package to a dedicated repository. This seems to work, as elm install recognized the package now. I do not find the package on Ellie yet, which is the goal, but I suspect that is an outdated cache.
I am still interested to learn how elm publish works normally, or if there is a simpler workaround.
As far as I know, elm publish requires that the name in elm.json be <username>/<respository>, corresponding to https://github.com/<username>/<repository>. The elm publish help text telling you how to create GitHub tag that matches the version in elm.json is just that, help text. If you’ve configured your repository in the standard way, with the origin remote corresponding to the master branch, then you can use those commands as is. Otherwise, you have to change them as you did.