-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.71 KB
/
release-main.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Semantic Release
on:
pull_request:
types:
- closed
#
# Required to be able to call the REST API to create both the
# new tag and release.
#
permissions:
contents: write
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- run: |
echo The PR was merged
SemanticRelease:
needs: if_merged
name: Perform a semantic release
runs-on: ubuntu-latest
steps:
- name: action-release
id: release
uses: mateothegreat/action-release@main
with:
github_token: ${{ secrets.GH_TOKEN }}
owner: Fatal1tyBarucco
repo: CryptoFalidos
default: 0.0.1
prefix: v
increment: patch
# release_name: release 🎉
release_body: |
Minor release with many small,
but great improvements 👏..
release_notes: true
committer_name: Renato Barucco
committer_email: [email protected]
- name: Print the current and next version using outputs
run: |
echo 'Current Version:' ${{ steps.release.outputs.current_version }}
echo 'Next Version:' ${{ steps.release.outputs.next_version }}
# Run Source Code Checkout
- name: 'Checkout source code'
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Renato Barucco"
- run: npm version patch -m '${{ steps.release.outputs.next_version }}'
- run: git pull
- run: git push
- run: git push -f origin main:Qas
- run: git push -f origin main:feature/Barucco