This document describes how maintainers can push new releases of morphir-elm
into NPM and the Elm package repo.
Elm package publishing is automated through a GitHub action so all you need to do is use elm bump
to let elm calculate
the new version number and push it directly if you are a maintainer or get it merged through a PR as a contributor.
The GitHub action will take care of the rest. Here are the detailed steps:
- Run
elm bump
to get the version number in yourelm.json
updated.- This will calculate the new version number and ask you to confirm.
- Commit the
elm.json
change.git add elm.json git commit -m "Bump Elm package version"
- Create a PR to update the version number on the
master
branch. - When the PR is merged a GitHub action will publish the Elm package.
- Clone the
finos/morphir-elm
github repo or pull the latest from the master branch if you have a clone already.orgit clone https://github.com/finos/morphir-elm.git
git pull origin master
- Build the CLI.
npm run make-cli
- Run
np
for publishing.- If you don't have
np
installed yet, install it withnpm install -g np
- If you don't have
np
will propmpt you to select the next semantic version number so you'll have to decide if your changes are major, minor or patch.- Note:
np
might say that there has not been any commits. This is normal if you just published the Elm package since it picks up the tag from that one. It is safe to respondy
to that question because the rest of the process will use the version number from thepackage.json
and push a tag with a prefixv
so it does not collide with Elm which does not use a prefix.
- Note:
np
will also ask you for credentials.