Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 1.55 KB

PUBLISH-NPM-PACKAGE.md

File metadata and controls

62 lines (38 loc) · 1.55 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

This should happen automatically after publishing the release on GH (thanks to GH actions workflow).

In case it fails and you need to publish manually, here are manual steps:

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