-
Notifications
You must be signed in to change notification settings - Fork 62
Publish Flow
Avi Vahl edited this page May 9, 2022
·
11 revisions
To release a new version (e.g. v4.10.1
):
# validate npm@8.6.0 or above is used
npm -v
# validate current directory is the root of the repository
pwd
# validate current branch is `master`
git checkout master
# validate no local changes to already committed files
git reset --hard
# validate local copy has all changes from upstream
git pull
# remove any non-committed files (node_modules, dist, etc)
git clean -fdx
# install and test
npm it
# bump the "version" of each package and any request for bumped packages
npm version v4.10.1 -ws --save
# ensure package-lock.json is finalized with bumped requests (previous step only partially updates it)
npm i
# add and commit changed files
git commit -am v4.10.1
# create a git tag for the new commit
# the -m creates an annotated tag for --follow-tags in next step
git tag v4.10.1 -m v4.10.1
# push both commmit and tag
# up to this point nothing got pushed
git push --follow-tags