Note This is a work-in-progress version of the our release process.
Warning Before releasing a new version, make sure the changes are fine and also do not break existing components. Do so by running stencil in dev-mode, starting Storybook locally after having built mwui-stencil and push your changes to main (will automatically deploy to mwui-dev)
To create a public build of the Web Components follow these steps:
- Make sure you pulled the most recent changes of the
main
branch. - Run
npm run build-tokens
to ensure the token transformation output is up to date - (QA) start the dev server and check for errors
npm run start
- Build the library using
npm run build-stencil
. (This will update the framework integrations but not create a build of those!)
npm run version:{major | minor | patch}
npm publish --access public
- Make sure
mwui-stencil
is built and published in a next version (see above). - Update to the lastest version of
@maibornwolff/mwui-stencil
in the respective integration package.json (e.g.mwui-react
) - Create framework-specific build:
# in framework-specific directory, e.g. mwui-react
npm run build
Then, publish to npm by running:
# in framework-specific directory, e.g. mwui-react
npm publish --access public
If not already created by npm version command, create a new version tag v{major}.{minor}.{patch}
and push it together with the commits resulting from the steps above to main.
Warning Pushing a Tag in that format will trigger the release workflow in Github which creates a new build of the library and Storybook. This should match the published version of the component library.