|
| 1 | +## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. |
| 2 | +## SPDX-License-Identifier: Apache-2.0 |
1 | 3 | { |
2 | 4 | "branches": ["master"], |
3 | 5 | "plugins": [ |
|
9 | 11 | "presetConfig": { |
10 | 12 | "types": [ |
11 | 13 | {"type": "feat", "section": "Features"}, |
12 | | - {"type": "fix", "section": "Bug Fixes"}, |
| 14 | + {"type": "fix", "section": "Fixes"}, |
13 | 15 | {"type": "chore", "section": "Maintenance"}, |
14 | 16 | {"type": "docs", "section": "Maintenance"}, |
15 | | - {"type": "revert", "section": "Bug Fixes"}, |
| 17 | + {"type": "revert", "section": "Fixes"}, |
16 | 18 | {"type": "style", "hidden": true}, |
17 | 19 | {"type": "refactor", "hidden": true}, |
18 | 20 | {"type": "perf", "hidden": true}, |
19 | 21 | {"type": "test", "hidden": true} |
20 | 22 | ] |
21 | | - } |
| 23 | + }, |
| 24 | + "releaseRules": [ |
| 25 | + {"type": "docs", "release": "patch"}, |
| 26 | + {"type": "revert", "release": "patch"}, |
| 27 | + {"type": "chore", "release": "patch"} |
| 28 | + ] |
22 | 29 | }], |
23 | 30 | ["@semantic-release/release-notes-generator", { |
24 | 31 | "preset": "conventionalcommits", |
|
28 | 35 | "presetConfig": { |
29 | 36 | "types": [ |
30 | 37 | {"type": "feat", "section": "Features"}, |
31 | | - {"type": "fix", "section": "Bug Fixes"}, |
| 38 | + {"type": "fix", "section": "Fixes"}, |
32 | 39 | {"type": "chore", "section": "Maintenance"}, |
33 | 40 | {"type": "docs", "section": "Maintenance"}, |
34 | | - {"type": "revert", "section": "Bug Fixes"}, |
| 41 | + {"type": "revert", "section": "Fixes"}, |
35 | 42 | {"type": "style", "hidden": true}, |
36 | 43 | {"type": "refactor", "hidden": true}, |
37 | 44 | {"type": "perf", "hidden": true}, |
|
40 | 47 | } |
41 | 48 | }], |
42 | 49 | ["@semantic-release/changelog", { |
43 | | - "changelogFile": "./CHANGELOG.md" |
| 50 | + "changelogFile": "./CHANGELOG.md", |
| 51 | + "changelogTitle": "# Changelog" |
| 52 | + }], |
| 53 | + ["@semantic-release/exec", { |
| 54 | + "prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version} \ |
| 55 | + -DautoVersionSubmodules=true && find README.md -type f \ |
| 56 | + -exec sed -i '' 's/<version>.*<\\/version>/<version>${nextRelease.version}<\\/version>/g' {} \\;" |
44 | 57 | }], |
45 | 58 | ["@semantic-release/git", { |
46 | | - "assets": ["./CHANGELOG.md"], |
47 | | - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
| 59 | + "assets": ["./CHANGELOG.md", "./pom.xml", "./README.md"], |
| 60 | + "message": "AWS Encryption SDK ${nextRelease.version} Release \n\n${nextRelease.notes}" |
48 | 61 | }], |
49 | | - "@semantic-release/github" |
| 62 | + #@semantic-release/github" |
50 | 63 | ], |
51 | | - "repositoryUrl": "https://github.com/josecorella/test-semantic-release-pr", |
| 64 | + "repositoryUrl": "https://github.com/aws/aws-encryption-sdk-java", |
52 | 65 | } |
0 commit comments