|
1 | 1 | ## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. |
2 | 2 | ## SPDX-License-Identifier: Apache-2.0 |
3 | 3 | { |
4 | | - "branches": ["main"], |
5 | | - "plugins": [ |
6 | | - ["@semantic-release/commit-analyzer", { |
7 | | - "preset": "conventionalcommits", |
8 | | - "parserOpts": { |
9 | | - "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] |
10 | | - }, |
11 | | - "presetConfig": { |
12 | | - "types": [ |
13 | | - {"type": "feat", "section": "Features"}, |
14 | | - {"type": "fix", "section": "Fixes"}, |
15 | | - {"type": "chore", "section": "Maintenance"}, |
16 | | - {"type": "docs", "section": "Maintenance"}, |
17 | | - {"type": "revert", "section": "Fixes"}, |
18 | | - {"type": "style", "hidden": true}, |
19 | | - {"type": "refactor", "hidden": true}, |
20 | | - {"type": "perf", "hidden": true}, |
21 | | - {"type": "test", "hidden": true} |
22 | | - ] |
23 | | - }, |
24 | | - "releaseRules": [ |
25 | | - {"type": "docs", "release": "patch"}, |
26 | | - {"type": "revert", "release": "patch"}, |
27 | | - {"type": "chore", "release": "patch"} |
28 | | - ] |
29 | | - }], |
30 | | - ["@semantic-release/release-notes-generator", { |
31 | | - "preset": "conventionalcommits", |
32 | | - "parserOpts": { |
33 | | - "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] |
34 | | - }, |
35 | | - "presetConfig": { |
36 | | - "types": [ |
37 | | - {"type": "feat", "section": "Features"}, |
38 | | - {"type": "fix", "section": "Fixes"}, |
39 | | - {"type": "chore", "section": "Maintenance"}, |
40 | | - {"type": "docs", "section": "Maintenance"}, |
41 | | - {"type": "revert", "section": "Fixes"}, |
42 | | - {"type": "style", "hidden": true}, |
43 | | - {"type": "refactor", "hidden": true}, |
44 | | - {"type": "perf", "hidden": true}, |
45 | | - {"type": "test", "hidden": true} |
46 | | - ] |
47 | | - } |
48 | | - }], |
49 | | - ["@semantic-release/changelog", { |
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' {} \\;" |
57 | | - }], |
58 | | - ["@semantic-release/git", { |
59 | | - "assets": ["./CHANGELOG.md", "./pom.xml", "./README.md"], |
60 | | - "message": "Amazon S3 Encryption Client ${nextRelease.version} Release -- ${new Date().toISOString().slice(0, 10)} \n\n${nextRelease.notes}" |
61 | | - }], |
| 4 | + "branches": ["main"], |
| 5 | + "plugins": [ |
| 6 | + [ |
| 7 | + "@semantic-release/commit-analyzer", |
| 8 | + { |
| 9 | + "preset": "conventionalcommits", |
| 10 | + "parserOpts": { |
| 11 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] |
| 12 | + }, |
| 13 | + "presetConfig": { |
| 14 | + "types": [ |
| 15 | + {"type": "feat", "section": "Features"}, |
| 16 | + {"type": "fix", "section": "Fixes"}, |
| 17 | + {"type": "chore", "section": "Maintenance"}, |
| 18 | + {"type": "docs", "section": "Maintenance"}, |
| 19 | + {"type": "revert", "section": "Fixes"}, |
| 20 | + {"type": "style", "hidden": true}, |
| 21 | + {"type": "refactor", "hidden": true}, |
| 22 | + {"type": "perf", "hidden": true}, |
| 23 | + {"type": "test", "hidden": true} |
| 24 | + ] |
| 25 | + }, |
| 26 | + "releaseRules": [ |
| 27 | + {"type": "docs", "release": "patch"}, |
| 28 | + {"type": "revert", "release": "patch"}, |
| 29 | + {"type": "chore", "release": "patch"} |
| 30 | + ] |
| 31 | + } |
62 | 32 | ], |
63 | | - "repositoryUrl": "https://github.com/aws/amazon-s3-encryption-client-java", |
| 33 | + [ |
| 34 | + "@semantic-release/release-notes-generator", |
| 35 | + { |
| 36 | + "preset": "conventionalcommits", |
| 37 | + "parserOpts": { |
| 38 | + "noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] |
| 39 | + }, |
| 40 | + "presetConfig": { |
| 41 | + "types": [ |
| 42 | + {"type": "feat", "section": "Features"}, |
| 43 | + {"type": "fix", "section": "Fixes"}, |
| 44 | + {"type": "chore", "section": "Maintenance"}, |
| 45 | + {"type": "docs", "section": "Maintenance"}, |
| 46 | + {"type": "revert", "section": "Fixes"}, |
| 47 | + {"type": "style", "hidden": true}, |
| 48 | + {"type": "refactor", "hidden": true}, |
| 49 | + {"type": "perf", "hidden": true}, |
| 50 | + {"type": "test", "hidden": true} |
| 51 | + ] |
| 52 | + } |
| 53 | + } |
| 54 | + ], |
| 55 | + [ |
| 56 | + "@semantic-release/changelog", |
| 57 | + { |
| 58 | + "changelogFile": "./CHANGELOG.md", |
| 59 | + "changelogTitle": "# Changelog" |
| 60 | + } |
| 61 | + ], |
| 62 | + [ |
| 63 | + "@semantic-release/exec", |
| 64 | + { |
| 65 | + "prepareCmd": "bash ./release-prepare.sh ${nextRelease.version}" |
| 66 | + } |
| 67 | + ], |
| 68 | + [ |
| 69 | + "@semantic-release/git", |
| 70 | + { |
| 71 | + "assets": [ |
| 72 | + "./CHANGELOG.md", |
| 73 | + "./pom.xml", |
| 74 | + "./README.md", |
| 75 | + "./migration_examples/v3-to-v4/v4/pom.xml", |
| 76 | + "./src/main/java/software/amazon/encryption/s3/internal/ApiNameVersion.java", |
| 77 | + "./src/test/java/software/amazon/encryption/s3/internal/ApiNameVersionTest.java" |
| 78 | + ], |
| 79 | + "message": "Amazon S3 Encryption Client ${nextRelease.version} Release -- ${new Date().toISOString().slice(0, 10)} \n\n${nextRelease.notes}" |
| 80 | + } |
| 81 | + ] |
| 82 | + ], |
| 83 | + "repositoryUrl": "https://github.com/aws/aws-s3-encryption-client-java" |
64 | 84 | } |
0 commit comments