File tree 5 files changed +47
-8
lines changed
5 files changed +47
-8
lines changed Original file line number Diff line number Diff line change 4
4
- main
5
5
workflow_dispatch :
6
6
7
+ permissions :
8
+ id-token : write # for PYPI release
9
+
7
10
name : release-please
8
11
9
12
jobs :
10
13
release-please :
11
14
runs-on : ubuntu-latest
12
15
steps :
13
- - name : Release
14
- uses : google-github-actions/release-please-action@v4
15
- with :
16
- token : ${{ secrets.CI_RELEASE_PLEASE_TOKEN }}
17
- release-type : simple
16
+ - name : Release
17
+ id : release
18
+ uses : google-github-actions/release-please-action@v4
19
+ with :
20
+ token : ${{ secrets.BOT_TOKEN }}
21
+
22
+ - uses : actions/checkout@v3
23
+ if : ${{ steps.release.outputs.release_created }}
24
+
25
+ - name : Set up Python
26
+ uses : actions/setup-python@v3
27
+ if : ${{ steps.release.outputs.release_created }}
28
+ with :
29
+ python-version : ' 3.x'
30
+
31
+ - name : Install dependencies
32
+ if : ${{ steps.release.outputs.release_created }}
33
+ run : |
34
+ python -m pip install --upgrade pip
35
+ pip install build
36
+
37
+ - name : Build package
38
+ if : ${{ steps.release.outputs.release_created }}
39
+ run : python -m build
40
+
41
+ - name : Publish package
42
+ if : ${{ steps.release.outputs.release_created }}
43
+ uses : pypa/gh-action-pypi-publish@v1.8.14
Original file line number Diff line number Diff line change
1
+ {}
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" ,
3
+ "packages" : {
4
+ "." : {
5
+ "extra-files" : [
6
+ " src/commitlint/__version__.py"
7
+ ]
8
+ }
9
+ },
10
+ "pull-request-header" : " Release PR" ,
11
+ "pull-request-title-pattern" : " chore: release v${version}" ,
12
+ "release-type" : " simple"
13
+ }
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ keywords =
19
19
classifiers =
20
20
Programming Language :: Python :: 3 :: Only
21
21
Programming Language :: Python :: 3.8
22
- License :: OSI Approved :: GNU General Public License v3 (GPL-3.0)
23
22
24
23
url = https://github.com/opensource-nepal/commitlint
25
24
project_urls =
Original file line number Diff line number Diff line change 1
1
"""
2
2
This module contains the version information of the current commitlint.
3
- TODO: automatically bump version through CI .
3
+ NOTE: The version is auto-updated by release-please action .
4
4
"""
5
5
6
- __version__ = "0.2.1"
6
+ __version__ = "0.2.1" # x-release-please-version
You can’t perform that action at this time.
0 commit comments