Bump Github actions in npm-install (#26) #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tag release | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: | |
inputs: | |
tag-name: | |
description: 'Tag name' | |
required: true | |
default: 'test' | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Debitoor OPS" | |
- name: Tag source | |
env: | |
TAG_NAME: ${{ inputs.tag-name || 'v2' }} | |
run: git tag -f -am "$TAG_NAME" $TAG_NAME | |
- name: Push tag | |
run: git push --tags -f |