Skip to content

Merge pull request #137 from vilsonei/main #64

Merge pull request #137 from vilsonei/main

Merge pull request #137 from vilsonei/main #64

Workflow file for this run

name: Generate Tags
on:
push:
branches:
- main
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm i
- name: Get version from package.json
id: version
run: echo "::set-output name=version::$(node -p -e "require('./package.json').version")"
- name: Generate tag
id: tag
run: echo "::set-output name=tag::v${{ steps.version.outputs.version }}.${{ github.run_number }}"
- name: Create tag
run: git tag ${{ steps.tag.outputs.tag }}
- name: Push tag to remote repository
run: git push origin ${{ steps.tag.outputs.tag }}