-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrelease.config.js
More file actions
25 lines (24 loc) · 917 Bytes
/
Copy pathrelease.config.js
File metadata and controls
25 lines (24 loc) · 917 Bytes
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
const package = 'systemlink-grafana-plugins';
const prerelease = process.env.PRERELEASE_CHANNEL;
const branch = process.env.PRERELEASE_BRANCH;
module.exports = {
...(prerelease && { branches: ['main', { name: branch, prerelease, channel: prerelease }] }),
plugins: [
["@semantic-release/commit-analyzer", {
preset: "conventionalcommits"
}],
["@semantic-release/release-notes-generator", {
preset: "conventionalcommits"
}],
'@semantic-release/changelog',
'@semantic-release/npm',
['@semantic-release/exec', {
prepareCmd: 'npm run build',
publishCmd: `mv dist ${package} && zip -r ${package}.zip ${package}`
}],
['@semantic-release/github', {
assets: [{ path: `${package}.zip`, name: package + '-${nextRelease.version}.zip'}]
}],
'@semantic-release/git'
]
}