Skip to content

Commit 3d982d0

Browse files
committed
chore(release): v0.18.1
1 parent f06d44c commit 3d982d0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/integration_delivery.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
fi
178178
else
179179
VERSION_CHANGELOG=$(echo $FIRST_HEADER | sed 's/Version //')
180-
if [ "${{ steps.extract-version.outputs.VERSION }}" != "$VERSION_CHANGELOG" ]; then
180+
if [ "${{ steps.extract-version.outputs.VERSION }}" =~ "^$VERSION_CHANGELOG\.dev[0-9]+" ]; then
181181
echo "Error: Version extracted from CHANGELOG.md does not match the version in pyproject.toml"
182182
exit 1
183183
else
@@ -207,9 +207,9 @@ jobs:
207207
publish:
208208
name: Publish
209209
if: >-
210-
github.event_name == 'push' && github.ref == 'refs/heads/main' ||
211-
github.event_name == 'pull_request' && github.event.pull_request.base.ref
212-
== 'main'
210+
github.event_name == 'push' && (github.ref == 'refs/heads/main' ||
211+
startsWith(github.ref, 'refs/tags/v')) || github.event_name ==
212+
'pull_request' && github.event.pull_request.base.ref == 'main'
213213
needs:
214214
- type-check
215215
- lint

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Upcoming
3+
## Version 0.18.1
44

55
- chore: migrate from poetry to uv for the sake of improving performance and dealing with conflicting sub-dependencies
66
- refactor(core): avoid passing events to `dispatch`, to enforce using them as side-effects only

setup_scm_schemes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@
1010
def local_scheme(version) -> str: # noqa: ANN001
1111
version.node = re.sub(r'.', lambda match: str(ord(match.group(0))), version.node)
1212
original_local_version = get_local_node_and_date(version)
13+
if not original_local_version:
14+
return original_local_version
1315
numeric_version = original_local_version.replace('+', '').replace('.d', '')
1416
return datetime.now(UTC).strftime('%y%m%d') + numeric_version

0 commit comments

Comments
 (0)