Create a branch with the exact same name as the version you're releasing and set it to follow the origin
git checkout -b <VERSION>
git push -u origin <VERSION>
(creates a new origin branch)
npm run build
- Go to
./build
folder - Run
npm pack
- Run
npm install <PATH TO RESULTING TAR>
when used
npm run release <VERSION on form MAJOR.MINOR.PATCH(-beta)?>
npm run upload
npm unpublish <PACKAGE>@<VERSION>
- Do work in the main branch
- Update the package version where necessary in the documentation (not in
package.json
as this will be done from command line). - Run npm scripts
lint
,test
andbuild
to make sure that you have arrived to a code state which is functional correct and with everything in order. Here is also a good place to test the new package by going to thebuild
folder and exporting it withnpm pack
and install it in some other test app. - When you are done, run
npm run release <VERSION on form MAJOR.MINOR.PATCH(-beta)?>
. This will update versions in relevant files to update the version and also create a commit and push the project to Github along with a version tag. - Final release the new version on npm repository by running
npm run upload
- You're done
- Good primer on MathML: https://math-it.org/Publikationen/MathML.html
- On HTML math entities: https://www.freeformatter.com/html-entities.html#math-symbols bra mathml