Skip to content

Merge pull request #94 from hideki0403/next-release #83

Merge pull request #94 from hideki0403/next-release

Merge pull request #94 from hideki0403/next-release #83

Workflow file for this run

name: Create release tag
on:
workflow_dispatch:
push:
branches:
- 'master-kakurega'
paths:
- 'package.json'
jobs:
createTag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: get package version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: check tag exists
uses: mukunku/tag-exists-action@v1.0.0
id: check-tag
with:
tag: v${{ steps.package-version.outputs.current-version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: create tag
uses: pkgdeps/git-tag-action@v2
if: steps.check-tag.outputs.exists == 'false'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_repo: ${{ github.repository }}
version: ${{ steps.package-version.outputs.current-version }}
git_commit_sha: ${{ github.sha }}
git_tag_prefix: "v"