diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index e40d4fc..6e53cf1 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -14,8 +14,14 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 + # We are pinning uv to lower version to workaround the existing + # bugs in setuptools build system. We can unpin onces the issue + # is resolved in upstream repos. + # Bug: https://github.com/pypa/setuptools/issues/4759 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v4 + with: + version: '0.4.22' - name: Publish to pypi run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a7f258..95da961 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,9 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4.2.2 - with: - token: ${{ secrets.GH_TOKEN }} + + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Run semantic-release run: | @@ -21,4 +22,4 @@ jobs: npm install @semantic-release/exec -D npx semantic-release env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + GH_TOKEN: ${{ secrets.GH_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index 3e8ce54..f28d59b 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -24,6 +24,16 @@ { "prepareCmd": "scripts/bump-version.sh ${nextRelease.version}" } + ], + [ + "@semantic-release/git", + { + "assets": ["CHANGELOG.md", "rapyuta_io_sdk_v2/__init__.py"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } + ], + [ + "@semantic-release/github" ] ] }