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
44on :
55 pull_request :
66 branches :
7- - master
7+ - main
88
99jobs :
1010 build :
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ name: Semantic release
33on :
44 push :
55 branches :
6- - master
6+ - main
77
88jobs :
99 build :
1010 name : Semantic release
11- environment : master
11+ environment : main
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v4
@@ -19,18 +19,20 @@ jobs:
1919 id : semantic
2020 uses : cycjimmy/semantic-release-action@v4
2121 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 }}
2424
2525 with :
26- ci : ${{ env.GITHUB_REF == 'refs/head/master ' }}
26+ ci : ${{ github.ref == 'refs/heads/main ' }}
2727 extra_plugins : |
28+ conventional-changelog-conventionalcommits
2829 semantic-release-mirror-version
29- semantic-release-hackage
30+ semantic-release-stack-upload
3031
3132 - name : Semantic release output
3233 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' }}
3436 echo published: ${{ steps.semantic.outputs.new_release_published }}
3537 echo last_release: ${{ steps.semantic.outputs.last_release_version }}
3638 echo new_version: ${{ steps.semantic.outputs.new_release_version }}
You can’t perform that action at this time.
0 commit comments