-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 1.09 KB
/
tagging.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Tagging
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Setting up git config
run: |
git config --global user.name "trks"
git config --global user.email "[email protected]"
- name: Setup Node.js
uses: actions/setup-node@v4
- run: sudo npm install -g standard-version
- name: Generate tag and release body
run: standard-version --infile RELEASE_BODY.md --skip.commit
- name: Publish tag
id: publish_tag
run: |
git push --follow-tags
echo "tag_name=$(git describe HEAD --abbrev=0)" >> $GITHUB_OUTPUT
- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ steps.publish_tag.outputs.tag_name }}
tag_name: ${{ steps.publish_tag.outputs.tag_name }}
body_path: RELEASE_BODY.md