publish-gh-release-package
A repo to experiment with scripts to create a package from a release and publish it
Steps to release
Below are the theoretical release steps a package using the pattern this repo demonstrates would need follow to release & publish a package
Prerequisite: Do whatever your package requires to bump the version in Git. That process might be creating and merging a PR that just bumps the version or completing an automatically generated
changesets
PR
- Create tag for release at the commit that should be released:
git checkout main
git tag v1.1.0
git push --tags
- Wait for Release workflow to create the draft GitHub release and upload the NPM package artifact to the GitHub release
- Download the NPM package from the release and publish it
npm publish package-1.1.0.tgz
- Fill out and publish the GitHub release