-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.releaserc.yml
More file actions
47 lines (47 loc) · 1.97 KB
/
.releaserc.yml
File metadata and controls
47 lines (47 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Allowed number of prerelease rules: 1..3
# While semantic-release allows globs, they must be combined with `prerelease: true` and suffix is derived from name than. It conflicts with PEP440
# PEP440 version rules (not compatible with SemVer): [N!]N(.N)*[{a|b|rc}N][.postN][.devN]
# Consequences:
# - prerelease branches must be explicitly specified, no asterisks
# - prerelease parameter should be one of: a,b,rc,dev,post
# - translation from SemVer prerelease notation to PEP440 is tone in 'replacements' section
branches: # only branches listed here will create releases
- master
- name: ci/trusted_publishing_test
prerelease: dev
#- name: develop
# prerelease: dev
#- name: feature/*
# prerelease: true # will use branch name as suffix
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/changelog'
- - '@google/semantic-release-replace-plugin'
- replacements:
- files: [pyproject.toml]
from: ^version = ".*?"
to: version = "${nextRelease.version}"
countMatches: true
results:
- file: pyproject.toml
hasChanged: true
numMatches: 1
numReplacements: 1
- - '@google/semantic-release-replace-plugin' # optional SemVer -> PEP440 coercion
- replacements:
- files: [pyproject.toml] # optional: SemVer prerelease -> PEP440 ("1.2.3-dev.1" -> "1.2.3.dev1")
from: '^version = "(\\d+\\.\\d+\\.\\d+)-(dev|post)\\.(\\d+)"'
to: 'version = "\\1.\\2\\3"'
- files: [pyproject.toml] # optional: SemVer prerelease -> PEP440 ("1.2.3-rc.10" -> "1.2.3rc10" )
from: '^version = "(\\d+\\.\\d+\\.\\d+)-(a|b|rc)\\.(\\d+)"'
to: 'version = "\\1\\2\\3"'
- - '@semantic-release/git'
- assets:
- CHANGELOG.md
- pyproject.toml
- - '@semantic-release/exec'
- prepareCmd: |
/bin/bash ./ci/scripts/build_with_uv.sh
# NOTE: @semantic-release/github plugin removed - GitHub release creation
# now happens in the publish job after smoke tests pass