Skip to content

Commit 2150f95

Browse files
authored
fix: remove v from tag when looking for the version (#13)
1 parent 6356695 commit 2150f95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ jobs:
6868
PACKAGE_IMPORT_NAME=$(echo $PACKAGE_NAME | tr '-' '_')
6969
7070
# Install from TestPyPI, falling back to PyPI for dependencies
71-
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==${{ needs.release-please.outputs.tag_name }}"
71+
# Tags are v-prefixed. Versions are not.
72+
TAG_NAME="${{ needs.release-please.outputs.tag_name }}"
73+
VERSION="${TAG_NAME#v}"
74+
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ "$PACKAGE_NAME==$VERSION"
7275
7376
# Simple import check
7477
python -c "import $PACKAGE_IMPORT_NAME; print(f'Successfully imported $PACKAGE_IMPORT_NAME version {$PACKAGE_IMPORT_NAME.__version__}')"

0 commit comments

Comments
 (0)