Use this action to automatically tag the Git repository with package.json version
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Tag
id: tag-with-npm-version
uses: yieldray/tag-with-npm-version@main
with:
prefix: v
force: true
- name: Print version
id: output
run: echo "${{ steps.tag-with-npm-version.outputs.version }}"