Skip to content

Commit 72fa9ec

Browse files
committed
ci: enable semantic release
1 parent fcab952 commit 72fa9ec

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

.github/workflows/semantic-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
jobs:
99
build:
10-
if: false
1110
name: Semantic release
1211
environment: main
1312
runs-on: ubuntu-latest
@@ -20,18 +19,19 @@ jobs:
2019
id: semantic
2120
uses: cycjimmy/semantic-release-action@v4
2221
env:
23-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
24-
HACKAGE_TOKEN: ${{ secrets.HACKAGE_TOKEN }}
22+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
23+
HACKAGE_KEY: ${{ secrets.HACKAGE_TOKEN }}
2524

2625
with:
27-
ci: ${{ env.GITHUB_REF == 'refs/head/main' }}
26+
ci: ${{ github.ref == 'refs/heads/main' }}
2827
extra_plugins: |
2928
semantic-release-mirror-version
30-
semantic-release-hackage
29+
semantic-release-stack-upload
3130
3231
- name: Semantic release output
3332
run: |
34-
echo dry_run: ${{ env.GITHUB_REF != 'refs/head/main' }}
33+
echo ref: ${{ github.ref }}
34+
echo dry_run: ${{ github.ref != 'refs/heads/main' }}
3535
echo published: ${{ steps.semantic.outputs.new_release_published }}
3636
echo last_release: ${{ steps.semantic.outputs.last_release_version }}
3737
echo new_version: ${{ steps.semantic.outputs.new_release_version }}

.releaserc.mjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,6 @@ export default {
3030
}
3131
],
3232
"@semantic-release/github",
33-
[
34-
"semantic-release-hackage",
35-
{
36-
"packageName": "megaparsec-time",
37-
"versionPrefix": "0.",
38-
"publishDocumentation": true
39-
}
40-
]
33+
"semantic-release-stack-upload",
4134
]
4235
}

0 commit comments

Comments
 (0)