Skip to content

elm publish does not require the bumped elm.json to be pushed to GitHub #1771

Open
@billstclair

Description

@billstclair

My process for publishing a new version of a package is as follows (in Elm 0.19):

  1. Make changes and test them
  2. elm bump
  3. git commit -am "Bump version from xxx to yyy"; git push
  4. elm publish
  5. Execute the two lines printed about updating the tags on GitHub (I have an Emacs keyboard macro that copies one of those lines down in my shell buffer).
  6. elm publish

Sometimes I combine the last changes with the elm bump in a single commit.

This is all well and good, except sometimes I forgot to git push the elm.json with the bumped version number (in step 3). elm publish does not complain, and I end up with a new tag on GitHub with an elm.json containing the previous version number.

This doesn't appear to cause any real problems, but it's annoying. elm publish should error if the elm.json on GitHub doesn't match the local copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions