Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.05 KB

PUBLISHING.md

File metadata and controls

56 lines (36 loc) · 1.05 KB

How to publish a new version

Determine new version number for Elm package

Elm enforces strict rules for incrementing version numbers for packaging, so need to ask Elm for what the next version number to be like by running elm bump.

elm bump

The command will update elm.json file with the new version number depending on the nature of the changes made.

Update version number in the code

The following files need to be updated with the new Elm package version in elm.json file:

  • package.json
  • src/LocalStorage.elm (see moduleVersion)

Verify that version changes are successful by running browser tests again:

yarn webtest

Check Firefox, Chrome, and Safari.

Release Elm package

  • Check-in everything to the repo
  • Tag code in the main branch with the updated version number:
git tag <version>
  • Push the tag to the repo
git push --tags
  • Publish Elm package
elm publish

Release NPM package

yarn publish

Post-publishing

Add release notes to CHANGES.