-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.config.js
More file actions
28 lines (24 loc) · 829 Bytes
/
Copy pathrelease.config.js
File metadata and controls
28 lines (24 loc) · 829 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
26
27
28
import {
createScopedReleaseCommitsPlugin,
readPackageName,
} from './scripts/release/scoped-release-commits-plugin.js';
const currentPackageName = readPackageName(process.cwd());
const shortName = currentPackageName.replace('@lockfile-affected/', '');
const config = {
branches: ['main'],
repositoryUrl: 'https://github.com/split/lockfile-affected',
tagFormat: `${currentPackageName}-v\${version}`,
plugins: [
createScopedReleaseCommitsPlugin(),
[
'@semantic-release/exec',
{
prepareCmd: `pnpm version \${nextRelease.version} --no-git-tag-version --message "chore(release): ${shortName} \${nextRelease.version} [skip ci]"`,
publishCmd: 'pnpm publish --access public',
},
],
'@semantic-release/git',
'@semantic-release/github',
],
};
export default config;