Merge pull request #171 from tkrs/prevent-ci #2
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: Create Rlease Tag | |
on: | |
push: | |
branches: [master] | |
jobs: | |
create-tag: | |
environment: crates-io | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.event.head_commit.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 standard-version | |
- name: Determine tag and generate release body | |
run: standard-version --skip.changelog --skip.commit | |
- name: Publish tag | |
run: git push --follow-tags |