-
Notifications
You must be signed in to change notification settings - Fork 80
Publishing to npm
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.
To publish new versions, log in to npm with npm login.
For patch releases, where only the Z in X.Y.Z changes, choose Z as max(current Z of fluent-syntax (JS), current Z of fluent.syntax (Python)) + 1.
-
Change the current directory.
$ cd package-name -
Update
package.jsonandCHANGELOG.md. -
Commit and push.
$ git commit -m "package-name X.Y.X" $ git push -
Draft a new release on GitHub.
- Use
[email protected]for the tag name. - Use
package-name X.Y.Zfor the release title. - Copy the relevant part of the
CHANGELOG. - Check the pre-release checkbox.
- Use
-
Publish (still in the
package-namedirectory).$ make clean && make dist $ npm publish -
(Only if publishing an older version from a branch) Add the
latesttag to the latest mainline version. For instance, if publishing a0.4.xversion, make sure the newest0.6.xversion is tagged aslatest:$ npm dist-tag add [email protected] latest