-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.mjs
More file actions
52 lines (51 loc) · 1.54 KB
/
release.config.mjs
File metadata and controls
52 lines (51 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
export default {
branches: [
'develop',
{ name: 'rc-*', prerelease: true }, // release candidates
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [
{ type: 'docs', scope: 'README', release: 'patch' },
{ type: 'refactor', release: 'patch' },
],
},
],
'@semantic-release/release-notes-generator',
'@semantic-release/github',
'@semantic-release/npm',
],
};
/**
* NOTE: if desired to maintain a changelog file consider the following plugin configuration.
* Specifically the github.qkg1.topmit plugin is used to make commits via the GitHub API which
* allows for commit signatures.
* '@semantic-release/changelog',
* [
* '@jno21/semantic-release-github.qkg1.topmit',
* {
* files: ['dist/**', 'CHANGELOG.md', 'package.json'],
* },
* ],
*
* Additionally, the release workflow might need updated to get credentials for a GitHub App.
*
* - name: Generate GitHub App Token
* uses: actions/create-github-app-token@v3
* id: app-token
* with:
* app-id: ${{ vars.RELEASE_OPS_APP_ID }}
* private-key: ${{ secrets.RELEASE_OPS_APP_PRIVATE_KEY }}
*
* - name: Configure Git Author
* run: |
* APP_SLUG="${{ steps.app-token.outputs.app-slug }}"
* APP_ID=$(gh api "/users/${APP_SLUG}[bot]" --jq '.id')
* git config user.name "${APP_SLUG}[bot]"
* git config user.email "${APP_ID}+${APP_SLUG}[bot]@users.noreply.github.com"
* env:
* GH_TOKEN: ${{ steps.app-token.outputs.token }}
*/