Skip to content

Commit 5c916cb

Browse files
sangeet-joy-twsangeet-joy_xero
andauthored
ci: semantic release config updates (#642)
Co-authored-by: sangeet-joy_xero <sangeet.joy@xero.com>
1 parent e266ff2 commit 5c916cb

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
const config = {
22
branches: ['master'],
3-
Plugins: [
4-
'@semantic-release/commit-analyzer',
5-
'@semantic-release/release-notes-generator',
6-
'@semantic-release/changelog',
7-
'@semantic-release/github',
8-
[
9-
'@semantic-release/git',
3+
tagFormat: "${version}",
4+
plugins: [
5+
['@semantic-release/release-notes-generator',
106
{
11-
"assests": ["CHANGELOG.md"],
12-
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
7+
preset: 'angular',
8+
writerOpts: {
9+
headerPartial: '## What\'s changed',
10+
footerPartial: '\n**Full Changelog**:https://github.com/XeroAPI/Xero-OpenAPI/compare/{{previousTag}}...{{version}}'
11+
}
1312
}
14-
],
15-
["@semantic-release/npm", {
16-
"npmPublish": false,
17-
}]
13+
],
14+
'@semantic-release/commit-analyzer',
15+
'@semantic-release/github',
16+
'@semantic-release/git',
17+
1818
]
1919
}
20-
21-
module.exports = config
20+
module.exports = config;

.github/workflows/OAS-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Perform release
3131
run: |
32-
npx semantic-release --dry-run --branch master
32+
npx semantic-release
3333
env:
3434
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3535
working-directory: ${{ github.workspace }}/.github/semantic-release

0 commit comments

Comments
 (0)