-
Notifications
You must be signed in to change notification settings - Fork 77
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.
To publish new versions, log in to npm with npm login
.
-
Change the current directory.
$ cd fluent-<NAME>
-
Update
package.json
andCHANGELOG.md
. -
Commit and push.
$ git commit -m "@fluent/<NAME> X.Y.X" $ git push
-
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
.
- Use
-
Publish (still in the
fluent-<NAME>
directory).$ make dist $ npm publish --access public