The release process is mostly automated and requires running only a few commands. After commiting, pushing, tagging and releasing the changes, a GitHub Action will publish all npm packages.
-
Pull the latest changes from the main branch
-
Create a new branch
-
Uplift the package versions by running
npm version major|minor|patch --no-git-tag-version --workspaces
-
Update the dependency versions by running
npm run version:dependencies
-
Create a PR with your updated changes, get a review and merge it
-
Create a version tag on the latest commit on main and push it
git checkout main git pull origin main git tag <version-tag> git push origin <version-tag>
-
Create a GitHub release from the new tag (this will trigger the Github Action and publish all artifacts automatically).
The release process for next
releases is different from the latest
releases. We configured a GitHub action to publish the next
packages. It has to be called manually (it is a workflow_dispatch
). This will release the current state of main
. Follow these steps to release a next
version:
- Go to the Actions tab of your repository.
- On the left there is a list of workflow. Click the one the title "Publish
next
". - A blue ribbon will appear, stating
This workflow has a workflow_dispatch event trigger.
. - Click the button
Run workflow
from the ribbon. - A popup will appear, asking you for which branch you want to run the workflow. Select
main
and click the buttonRun workflow
.
Hint: What happens behind the scene is:
- the action calls
npm run version:next
for each workspace package - then it calls
npm run version:dependencies
to update the dependencies - then it calls
npm run publish:next
to publish the updated packages - the action discards everything, no changes will be committed or pushed