WebChat/.releaserc.mjs

57 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-09-28 04:46:54 +00:00
/**
* @type {import('semantic-release').GlobalConfig}
*/
2024-09-28 05:01:03 +00:00
import { name } from 'package.json'
2024-09-28 04:46:54 +00:00
export default {
branches: ['master'],
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{
npmPublish: false
}
],
[
'@semantic-release/exec',
{
prepareCmd: 'pnpm run pack'
}
],
/**
* Because assets.path does not support environment variables, a copy of the file without the version number is needed.
* @see https://github.com/semantic-release/github/issues/274
* */
[
'@semantic-release/exec',
{
2024-09-28 05:01:03 +00:00
prepareCmd: `cp .output/${name}-\${nextRelease.version}-chrome.zip .output/${name}-chrome.zip`
2024-09-28 04:46:54 +00:00
}
],
[
'@semantic-release/exec',
{
2024-09-28 05:01:03 +00:00
prepareCmd: `cp .output/${name}-\${nextRelease.version}-firefox.zip .output/${name}-firefox.zip`
2024-09-28 04:46:54 +00:00
}
],
[
'@semantic-release/github',
{
assets: [
{
2024-09-28 05:01:03 +00:00
path: `.output/${name}-chrome.zip`
2024-09-28 04:46:54 +00:00
},
{
2024-09-28 05:01:03 +00:00
path: `.output/${name}-firefox.zip`
2024-09-28 04:46:54 +00:00
}
],
labels: ['release']
}
],
'@semantic-release/git'
]
}