forked from adrienjoly/chrome-next-step-for-trello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.config.js
58 lines (57 loc) · 1.74 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// configuration file for semantic-release
// see https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration-file
module.exports = {
branch: 'main',
branches: [
'main'
],
verifyConditions: [
// {
// path: 'semantic-release-chrome', // will check that Chrome Web Store env vars are set in travis-ci, cf https://github.com/GabrielDuarteM/semantic-release-chrome/blob/master/Authentication.md
// extensionId: 'iajhmklhilkjgabejjemfbhmclgnmamf'
// },
'@semantic-release/github' // will check that the GITHUB_TOKEN env var is also set
],
prepare: [
// 1. Update the version in the manifest and zip the extension
{
path: 'semantic-release-chrome',
distFolder: 'dist',
manifestPath: 'dist/manifest.json',
asset: 'chrome-extension-dist.zip'
},
// 2. Update the version in package.json
'@semantic-release/npm',
// 3. Create a commit with updated versions
{
path: '@semantic-release/git',
assets: [
'dist/manifest.json',
'package.json'
],
message: [
/* eslint-disable no-template-curly-in-string */
'chore(release): ${nextRelease.version} [skip ci]',
'${nextRelease.notes}'
/* eslint-enable no-template-curly-in-string */
].join('\n\n')
}
],
publish: [
// 1. Publish the extension to Chrome Web Store
// {
// path: 'semantic-release-chrome',
// asset: 'chrome-extension-dist.zip',
// extensionId: 'iajhmklhilkjgabejjemfbhmclgnmamf'
// },
// 2. Create a git tag and release on GitHub
{
path: '@semantic-release/github',
assets: [
{
path: 'chrome-extension-dist.zip'
}
]
}
]
}