Skip to content

Commit 22600c1

Browse files
committed
ci: test
Release-As: 1.0.0
1 parent 09d4189 commit 22600c1

File tree

2 files changed

+46
-6
lines changed

2 files changed

+46
-6
lines changed

.github/workflows/release-please.yml

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,48 @@ jobs:
1010
release-please:
1111
runs-on: ubuntu-latest
1212
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
13+
- name: Release
14+
id: release
15+
uses: google-github-actions/release-please-action@v4
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
release-type: python
19+
package-name: commitlint
20+
pull-request-title-pattern: 'chore: release v${version}'
21+
pull-request-header: 'Release PR'
22+
changelog-types: >
23+
[
24+
{"type":"fix","section":"Bug Fixes"},
25+
{"type":"feat","section":"Features"}
26+
]
27+
extra-files: >
28+
[
29+
"src/commitlint/__version__.py"
30+
]
31+
32+
- uses: actions/checkout@v3
33+
if: ${{ steps.release.outputs.release_created }}
34+
35+
- name: Set up Python
36+
uses: actions/setup-python@v3
37+
if: ${{ steps.release.outputs.release_created }}
38+
with:
39+
python-version: '3.x'
40+
41+
- name: Install dependencies
42+
if: ${{ steps.release.outputs.release_created }}
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install build
46+
47+
- name: Build package
48+
if: ${{ steps.release.outputs.release_created }}
49+
run: python -m build
50+
51+
# Commented for now
52+
# - name: Publish package
53+
# if: ${{ steps.release.outputs.release_created }}
54+
# uses: pypa/gh-action-pypi-publish@v1.8.14
55+
# with:
56+
# user: __token__
57+
# password: ${{ secrets.PYPI_API_TOKEN }}

src/commitlint/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
TODO: automatically bump version through CI.
44
"""
55

6-
__version__ = "0.2.1"
6+
__version__ = "0.2.1" # x-release-please-version

0 commit comments

Comments
 (0)