Skip to content

Commit d4c5241

Browse files
committed
chore: updated release workflows
1 parent 90ad3b9 commit d4c5241

File tree

8 files changed

+595
-10
lines changed

8 files changed

+595
-10
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
Thanks for contributing!
3+
4+
Provide a description of your changes below and a general summary in the title
5+
6+
Please look at the following checklist to ensure that your PR can be accepted quickly:
7+
-->
8+
9+
## Description
10+
11+
<!--- Describe your changes in detail -->
12+
13+
## Type of Change
14+
15+
<!--- Put an `x` in all the boxes that apply: -->
16+
17+
- [ ]`feat` -- New feature (non-breaking change which adds functionality)
18+
- [ ] 🛠️ `fix` -- Bug fix (non-breaking change which fixes an issue)
19+
- [ ]`!` -- Breaking change (fix or feature that would cause existing functionality to change)
20+
- [ ] 🧹 `refactor` -- Code refactor
21+
- [ ]`ci` -- Build configuration change
22+
- [ ] 📝 `docs` -- Documentation
23+
- [ ] 🗑️ `chore` -- Chore

.github/workflows/pr_title.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 'PR Title is Conventional'
2+
on:
3+
pull_request_target:
4+
types:
5+
- opened
6+
- edited
7+
- synchronize
8+
9+
jobs:
10+
main:
11+
name: Validate PR title
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: amannn/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232

3333
- name: Version and Publish
3434
run: |
35-
melos version --yes --no-changelog
35+
melos version --yes
3636
melos publish --no-dry-run --yes

.github/workflows/release_please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ jobs:
1919
with:
2020
command: manifest
2121
token: ${{ secrets.OG_BOT_TOKEN }}
22+
release-type: dart
23+
bump-minor-pre-major: false
24+
bump-patch-for-minor-pre-major: false
25+
version-file: "changelog-only"

example/pubspec.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ version: 1.0.0+1
2020
environment:
2121
sdk: ">=2.15.0 <3.0.0"
2222

23-
dependency_overrides:
24-
openapi_generator_annotations:
25-
path: ../openapi-generator-annotations
26-
openapi_generator:
27-
path: ../openapi-generator
28-
openapi_generator_cli:
29-
path: ../openapi-generator-cli
30-
3123

3224
# Dependencies specify other packages that your package needs in order to work.
3325
# To automatically upgrade your package dependencies to the latest versions

melos.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ packages:
55
- openapi-generator
66
- openapi-generator-annotations
77
- openapi-generator-cli
8+
9+
command:
10+
version:
11+
# Generate commit links in package changelogs.
12+
linkToCommits: true
13+
# Only allow versioning to happen on main branch.
14+
branch: master
15+
# Additionally build a changelog at the root of the workspace.
16+
workspaceChangelog: true

0 commit comments

Comments
 (0)