I am proposing a way to automate releases using GitHub Actions and creating a release workflow. Technically, the approximate solution is described here, here or here.
Prework
Integrate release automation with standard-version NPM utility configuring release script in package.json. Running npm run release will do:
bump version in package.json
generate changelog file
commit above changes
tag a new version
Workflow steps:
Workflow is triggered by pushing a tag to master in the semver format.
Export release files: build and export static files to an archive
Create release: upload the archive and generate release notes with a changelog (action gh-release)
I am proposing a way to automate releases using GitHub Actions and creating a
release
workflow. Technically, the approximate solution is described here, here or here.Prework
release
script inpackage.json
. Runningnpm run release
will do:Workflow steps: