-
Notifications
You must be signed in to change notification settings - Fork 80
Publishing to npm
Staś Małolepszy edited this page Apr 17, 2019
·
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.
To publish new versions, log in to npm with npm login.
-
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
package-name@X.Y.Zfor 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 dist $ npm publish