forked from oclif/oclif
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
35 lines (34 loc) · 862 Bytes
/
release.config.js
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
/* eslint-disable no-template-curly-in-string */
module.exports = {
verifyConditions: [
{
path: '@semantic-release/exec',
cmd: './node_modules/.bin/nps build',
},
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
prepare: [
{
path: '@semantic-release/exec',
cmd: 'OCLIF_NEXT_VERSION=${nextRelease.version} yarn run version',
},
{path: './scripts/release-example'},
'@semantic-release/changelog',
'@semantic-release/npm',
{
path: '@semantic-release/git',
assets: ['package.json', 'CHANGELOG.md', 'README.md', 'docs'],
},
],
publish: [
'@semantic-release/npm',
'@semantic-release/github',
{
path: '@semantic-release/exec',
cmd: './scripts/release-create-oclif.js',
},
],
}