A GitHub Action for automatically generating a release on GitHub for version tags.
-
Setup a GitHub workflow like this:
name: 'tagged-release' on: push: tags: - 'v*' permissions: contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: tagged-release: name: 'Tagged Release' runs-on: 'ubuntu-latest' steps: - uses: actions/checkout@v4.1.7 with: fetch-depth: 0 - uses: actions/setup-node@v4.0.3 with: node-version-file: '.nvmrc' cache: 'npm' - uses: electrovir/release-vir@dev
-
Use
git tagto add version tags with thevprefix to your commits.Example:
git tag v0.0.2. -
Run
git push --tagsto push your tags to GitHub, triggering the above workflow.