File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Conventional commits
4
4
on :
5
5
pull_request :
6
6
branches :
7
- - master
7
+ - main
8
8
9
9
jobs :
10
10
build :
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Semantic release
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - main
7
7
8
8
jobs :
9
9
build :
10
10
name : Semantic release
11
- environment : master
11
+ environment : main
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
@@ -19,18 +19,20 @@ jobs:
19
19
id : semantic
20
20
uses : cycjimmy/semantic-release-action@v4
21
21
env :
22
- GITHUB_TOKEN : ${{ secrets.GH_PAT }}
23
- HACKAGE_TOKEN : ${{ secrets.HACKAGE_TOKEN }}
22
+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
23
+ HACKAGE_KEY : ${{ secrets.HACKAGE_TOKEN }}
24
24
25
25
with :
26
- ci : ${{ env.GITHUB_REF == 'refs/head/master ' }}
26
+ ci : ${{ github.ref == 'refs/heads/main ' }}
27
27
extra_plugins : |
28
+ conventional-changelog-conventionalcommits
28
29
semantic-release-mirror-version
29
- semantic-release-hackage
30
+ semantic-release-stack-upload
30
31
31
32
- name : Semantic release output
32
33
run : |
33
- echo dry_run: ${{ env.GITHUB_REF != 'refs/head/master' }}
34
+ echo ref: ${{ github.ref }}
35
+ echo dry_run: ${{ github.ref != 'refs/heads/main' }}
34
36
echo published: ${{ steps.semantic.outputs.new_release_published }}
35
37
echo last_release: ${{ steps.semantic.outputs.last_release_version }}
36
38
echo new_version: ${{ steps.semantic.outputs.new_release_version }}
You can’t perform that action at this time.
0 commit comments