|
| 1 | +## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. |
| 2 | +## SPDX-License-Identifier: Apache-2.0 |
| 3 | +{ |
| 4 | + "branches": ["master", "mainline-1.x"], |
| 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": "AWS Encryption SDK ${nextRelease.version} Release \n\n${nextRelease.notes}" |
| 61 | + }], |
| 62 | + ], |
| 63 | + "repositoryUrl": "https://github.com/aws/aws-encryption-sdk-java", |
| 64 | +} |
0 commit comments