Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.28 KB

PUBLISH-NPM-PACKAGE.md

File metadata and controls

58 lines (36 loc) · 1.28 KB

Publish NPM package

Prepare for release

Check out a new release branch from main branch

git checkout -b prepare-0.1.1-release main

Build the docs

Build and Commit the docs for this version.

yarn build-docs
git add .
git commit -m "Build docs for 0.1.1."

Update the version

yarn version --new-version 0.1.1

Push

Push your branch to GitHub, create a PR and land it (this might require approval).

Publish the release

Review release notes

Make sure that the release notes draft created automatically by release-drafter is up to date.

Publish

Publish the latest release on Github with the new version number and add the release notes you created earlier.

Publish to NPM

Get a fresh copy of the main branch

git clone git@github.com:canonical/store-components.git store-components-release

Build and publish the package.

cd store-components-release
npm publish --access public

You should now see the new version on NPM