Skip to content

Publishing to npm

Staś Małolepszy edited this page Jul 25, 2019 · 13 revisions

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

Setup

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

Publishing new versions

  1. Change the current directory.

    $ cd fluent-<NAME>
    
  2. Update package.json and CHANGELOG.md.

  3. Commit and push.

    $ git commit -m "@fluent/<NAME> X.Y.X"
    $ git push
    
  4. Draft a new release on GitHub.

    • Use @fluent/<NAME>@X.Y.Z for the tag name.
    • Use @fluent/<NAME> X.Y.Z for the release title.
    • Copy the relevant part of the CHANGELOG.
    • Check the pre-release checkbox.
  5. Publish (still in the fluent-<NAME> directory).

    $ make dist
    $ npm publish --access public
    

Clone this wiki locally