From ef024f2b8723403263cf1bcda06947db0a1b6602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:15:45 +0200 Subject: [PATCH] ci: fix package name in release-please (#930) 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. --- .github/workflows/release-please.yml | 4 ++-- .pre-commit-config.yaml | 3 ++- .release-please-manifest.json | 2 +- release-please-config.json | 8 +++++--- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 0c9cac71e..e5515cc14 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d00b538de..65cc079c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,8 @@ repos: (?x)^( specification/schema/.*| .*.snap| - .*.snap.new + .*.snap.new| + .release-please-manifest.json )$ - id: trailing-whitespace exclude: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index eee402d93..c939732bf 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - "quantinuum-hugr-py": "0.1.0a1" + "hugr-py": "0.0.0" } diff --git a/release-please-config.json b/release-please-config.json index 68527b964..c54b074b4 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -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": [