Merge pull request #195 from tkrs/dependabot/cargo/pretty_env_logger-0.5 #21
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 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 "[email protected]" | |
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 |