Skip to content

Commit

Permalink
ci: fix package name in release-please (#930)
Browse files Browse the repository at this point in the history
Fixes some config in release-please so now it looks for the right
version tags `hugr-py-v*.*.*`. It doesn't seem to like alphas though, so
the first releases will need some manual tweaking (it tries to do 0.1.0
otherwise).

The CI job is failing with some github permission error... I copied the
guppy one to try and fix that, but I can run it locally via the CLI if
needed for these first releases.
  • Loading branch information
aborgna-q authored Apr 15, 2024
1 parent 18ac277 commit ef024f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Create release PR
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4.1
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
target-branch: ${{ github.event.ref }}
config-file: release-please-config.json
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ repos:
(?x)^(
specification/schema/.*|
.*.snap|
.*.snap.new
.*.snap.new|
.release-please-manifest.json
)$
- id: trailing-whitespace
exclude: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"quantinuum-hugr-py": "0.1.0a1"
"hugr-py": "0.0.0"
}
8 changes: 5 additions & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"include-component-in-tag": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"initial-version": "0.1.0",
"initial-version": "0.0.0",
"packages": {
"quantinuum-hugr-py": {
"hugr-py": {
"release-type": "python",
"component": "hugr-py",
"package-name": "hugr",
"include-component-in-tag": true,
"draft": false,
"prerelease": false
"prerelease": true
}
},
"changelog-sections": [
Expand Down

0 comments on commit ef024f2

Please sign in to comment.