Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release-helper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: release-helper
on:
push:
branches: main
pull_request:
branches: main

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup SBCL
uses: cheeze2000/setup-sbcl@v1

- name: Verify installation
run: >-
sbcl --non-interactive
--eval "(print (ql:client-version))"
--eval "(print (asdf:asdf-version))"

- name: test release helper
run: |
cd scripts
./prepare-release.test.lisp
9 changes: 9 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
app-id: "${{ secrets.SEMANTIC_RELEASE_APP_ID }}"
private-key: "${{ secrets.SEMANTIC_RELEASE_PRIVATE_KEY }}"

- name: Setup SBCL
uses: cheeze2000/setup-sbcl@v1

- name: Verify installation
run: >-
sbcl --non-interactive
--eval "(print (ql:client-version))"
--eval "(print (asdf:asdf-version))"

- name: Semantic release
id: semantic
uses: cycjimmy/semantic-release-action@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stack-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
matrix:
os: [ubuntu]
stack:
- lts: &default-lts 21.25
ghc: &default-ghc 9.4.8
- lts: &default-lts 24.56
ghc: &default-ghc 9.10.3

- lts: 22.44
ghc: 9.6.7
Expand Down
33 changes: 22 additions & 11 deletions .releaserc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,37 @@ export default {
{
"preset": "conventionalcommits",
"releaseRules": [
{ "type": "docs", "release": "patch" }
]
}
{ "type": "docs", "release": "patch" },
],
},
],
"@semantic-release/release-notes-generator",
[
"semantic-release-mirror-version",
{
"fileGlob": "@(package.yaml|megaparsec-utils.cabal)",
"placeholderRegExp": "0.0.0-dev"
}
"placeholderRegExp": "0.0.0-dev",
},
],
[
"@semantic-release/changelog",
"@semantic-release/exec",
{
changelogFile: "CHANGELOG.md",
changelogTitle: "Changelog"
}
"prepareCmd":
"./scripts/prepare-release.lisp ${nextRelease.version}",
},
],
[
"@semantic-release/git",
{
assets: [
"package.yaml",
"*.cabal",
"src/**/*.hs",
"api/**/*.api",
],
},
],
"@semantic-release/github",
"semantic-release-stack-upload",
]
}
],
};
3 changes: 2 additions & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ homepage: https://github.com/haskell-github-trust/megaparsec-utils
bug-reports: https://github.com/haskell-github-trust/megaparsec-utils/issues
category: Parsing
tested-with:
- GHC == 9.10
- GHC == 9.8
- GHC == 9.6
- GHC == 9.4

extra-source-files:
- README.md
Expand All @@ -25,6 +25,7 @@ description: |
dependencies:
- base >= 4.7 && < 5
- aeson >= 2.0 && < 3
- bytestring >= 0.11 && < 0.13
- megaparsec >= 9.0 && < 10
- parser-combinators >= 1.0 && < 2
- text >= 2.0 && < 3
Expand Down
Loading
Loading