Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 835 Bytes

File metadata and controls

30 lines (21 loc) · 835 Bytes

Contributing

Publishing

This project offers a GitHub Workflow to automatically publish a version to NPM, to GitHub Packages and to GitHub Releases on the push of a tag.

Start by updating the version number:

git checkout main
git pull --autostash --prune --rebase

VERSION=$(pnpm version patch --no-git-tag-version)
pnpm run format

git checkout -b "release/$VERSION"
git commit --all --message "🔖 $VERSION"
git push --set-upstream origin "release/$VERSION"

gh pr create --assignee @me --base main --draft --fill-verbose --head "release/$VERSION" --title "🔖 $VERSION"

Once the CI passes, merge the pull request, wait for the CI to pass again then push a new tag:

git checkout main
git pull --autostash --prune --rebase
git tag "$VERSION" --annotate --message "🔖 $VERSION" --sign
git push --tags