Skip to content

Commit

Permalink
ci: update version number in __init__.py automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
melanger committed Jul 25, 2023
1 parent e50c9c9 commit 19bd8cc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: "lts/*"
- name: Install npm dependencies
run: |
npm install semantic-release @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator @semantic-release/github &&
npm install semantic-release @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator @semantic-release/github @google/semantic-release-replace-plugin &&
echo @beepbeepgo:registry=https://gitlab.com/api/v4/packages/npm/ >> .npmrc &&
npm i @beepbeepgo/semantic-release-python
- name: Setup Python
Expand Down
21 changes: 21 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,27 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@beepbeepgo/semantic-release-python",
[
"@google/semantic-release-replace-plugin",
{
"replacements": [
{
"files": ["satosa_oidcop/__init__.py"],
"from": "__version__ = \".*\"",
"to": "__version__ = \"${nextRelease.version}\"",
"results": [
{
"file": "satosa_oidcop/__init__.py",
"hasChanged": true,
"numMatches": 1,
"numReplacements": 1
}
],
"countMatches": true
}
]
}
],
[
"@semantic-release/git",
{
Expand Down

0 comments on commit 19bd8cc

Please sign in to comment.