Skip to content

Commit 2ad8a5e

Browse files
committed
ci: fix semantic-release
1 parent 7a4482b commit 2ad8a5e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/conventional-commits.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Conventional commits
44
on:
55
pull_request:
66
branches:
7-
- master
7+
- main
88

99
jobs:
1010
build:

.github/workflows/semantic-release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Semantic release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
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 }}

0 commit comments

Comments
 (0)