Skip to content

Merge pull request #184 from tkrs/replace-commit-and-tag-version #11

Merge pull request #184 from tkrs/replace-commit-and-tag-version

Merge pull request #184 from tkrs/replace-commit-and-tag-version #11

Workflow file for this run

name: Create Release Tag
on:
push:
branches: [master]
jobs:
create-tag:
environment: crates-io
runs-on: ubuntu-latest
if: ${{ startsWith(github.event.commits[0].message, 'chore(release):') }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Setup git user
run: |
git config user.email "type.in.type@gmail.com"
git config user.name "Takeru Sato"
- name: Setup Node.js
uses: actions/setup-node@v4
- run: sudo npm install -g commit-and-tag-version
- name: Create tag
run: commit-and-tag-version --skip.changelog --skip.commit
- name: Publish tag
run: git push --follow-tags