Skip to content

Detect tag

Detect tag #1

Workflow file for this run

name: Detect tag
on:
create:
jobs:
check-version:
if: github.event.ref_type == 'tag'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get version
id: get_version
run: |
version=$(npm version)
echo "Current version: $version"
echo "##[set-output name=version;]$version"