Skip to content

Publishing to npm

Staś Małolepszy edited this page Feb 8, 2018 · 13 revisions

Individual Fluent packages are available on npm under their names. On this page, package-name is used as a placeholder for the actual name. In practice, it will be fluent, fluent-syntax, fluent-react etc.

Setup

To publish new versions, log in to npm with npm login.

Publishing new versions

  1. Update package.json and CHANGELOG.md.

  2. Commit and push:

    $ git commit -m "package-name X.Y.X"
    $ git push
    
  3. Draft a new release on GitHub.

    • Use package-name@X.Y.Z for the tag name.
    • Use package-name X.Y.Z (Month DD, YYYY) for the release title.
    • Copy the relevant part of the CHANGELOG.
    • Check the pre-release checkbox.
  4. Publish:

    $ cd package-name
    $ make clean && make dist
    $ npm publish
    

Clone this wiki locally