Skip to content

Publishing to npm

Stanisław Małolepszy edited this page Jul 1, 2020 · 13 revisions

Individual Fluent packages are available on npm under the @fluent scope. 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.
  5. Publish (still in the fluent-<NAME> directory).

    $ make dist
    $ npm publish --access public