-
Notifications
You must be signed in to change notification settings - Fork 25
Publishing design system components to npm CDN
zakiya edited this page Aug 20, 2024
·
2 revisions
- Make sure you have npm credentials and local machine authentication.
- Make sure you have AWS CLI credentials and local machine authentication.
- Regression test component in other sites as needed
- Document upgrade path
- Include broadband and other sites we know are using the code
- Draft communications (if necessary)
- Review
README
- Review name and version number in package.json
- Review and fix all security vulnerabilities
- Test all scripts
build
html:preview
test
- Update
CHANGELOG
Go to the package in question
cd design-system/components/[package]
npm publish --access public
Note that on npm publish
, the prePublishOnly
### hook fires. Details
semver.org | MAJOR.MINOR.PATCH
MAJOR
- Change that breaks markup
- Change that moves assets
- Change in approach
- Major changes in components
- Consider:
- Variable name changes
MINOR
- Non-breaking changes (style)
- minor changes in all components
PATCH
- Hotfixes - A change made to the game deemed critical enough that it cannot be held off until a regular release.
References