-
npm run release-version $current_version $next_versionto bump version number- then, if bumping a minor or major version:
- Manually search and replace
$current_versionin all files, meaning changes should happen in:- The style sheet loaded in
.storybook/preview-head.html -
docs_versioninconfig.ymland other references to the previous version -
scss/docs.scss - Several markdown files and markdown extended files
- Add docs version to
site/data/docs-versions.yml - Make sure the migration guide is updated only for the next version
- (Major version) Manually update the version in
nuget/ouds-web.nuspecandnuget/ouds-web.sass.nuspec - Check that the changes in the migration guide only apply to the latest version
- The style sheet loaded in
- Update the home news for the next release
- Manually search and replace
- check wrong matches in
CHANGELOG.md, and maybesite/content/docs/<version>/migration.md ⚠️ check thepackage-lock.jsonandpackage.jsoncontent, only "@ouds/web" should have its version changed!
- then, if bumping a minor or major version:
- if the year changed recently, happy new year 🎉 but please change © year in
.scssmain files (reboot, grid, utilities, and main file) as well as inNOTICE.txt. -
npm run releaseto compile dist, build Storybook, update SRI hashes in doc, and package the release - Prepare changelog:
- install Conventional Changelog and
conventional-changelog-cliglobally - run
conventional-changelog -p angular -i CHANGELOG.md -s - Make sure to import all the bad named commits
- install Conventional Changelog and
- Commit and push
distwith achore(release): vx.y.zcommit message - Merge on
ouds/main - Tag your version, and push your tag using
git tag vx.y.z-ouds-webandgit push vx.y.z-ouds-web - Pack and publish for the common part and all the brands
npm pack- if you are already logged in to NPM (with a personal account, for example), you'd better use a repository scoped
.npmrcfile - Publish:
- if you're releasing a pre-release, use
--tag, e.g. for v1-alpha1npm publish ouds-web-1.0.0-alpha1.tgz --tag next npm publish --access public
- if you're releasing a pre-release, use
- check release on NPM, Nuget, Packagist…
- publish documentation on
mainof the ouds-web-doc repo:- run
npm run storybook-build(be careful thatrelease-sridoesn't updateconfig.ymls) - remove
storybookfolder fromouds-web-doc - copy
../_siteto themainbranch - check every
index.htmlused as redirections to redirect to the new release - when bumping minor or major version: ensure
distURLs in examples' HTML has changed - double-check everything before pushing, starting by searching for forgotten old version number occurrences
- Make the new release banner appears in the previous version of the doc (e.g. in v5.3 when releasing the v5.4.0 doc)
- run
- create a GitHub release:
- attach the 2 zip files per brand
- paste the CHANGELOG / Ship list in the release's description