Skip to content

Commit b657c2d

Browse files
committed
fix: set SETUPTOOLS_SCM_PRETEND_VERSION in release builds
Prevents hatch-vcs from generating dirty dev versions during CI builds.
1 parent cd239a5 commit b657c2d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ jobs:
5656
run: |
5757
uv build --package pararam-nexus-mcp
5858
uv build --package pararam-nexus-channel
59+
env:
60+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ needs.resolve.outputs.version_number }}
5961

6062
- name: Publish to PyPI
6163
uses: pypa/gh-action-pypi-publish@release/v1
@@ -137,6 +139,8 @@ jobs:
137139
run: |
138140
uv build --package pararam-nexus-mcp
139141
uv build --package pararam-nexus-channel
142+
env:
143+
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ needs.resolve.outputs.version_number }}
140144

141145
- name: Create Release
142146
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)