forked from sweetalert2/sweetalert2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
37 lines (37 loc) · 962 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
36
37
module.exports = {
debug: true,
branches: ['main'],
verifyConditions: ['@semantic-release/changelog', '@semantic-release/npm', '@semantic-release/github'],
prepare: [
{
path: '@semantic-release/exec',
cmd: 'VERSION=${nextRelease.version} node tools/build-dist.mjs',
},
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
],
publish: [
'@semantic-release/npm',
[
'@semantic-release/github',
{
assets: [
{ path: 'dist/sweetalert2.all.js' },
{ path: 'dist/sweetalert2.all.min.js' },
{ path: 'dist/sweetalert2.css' },
{ path: 'dist/sweetalert2.js' },
{ path: 'dist/sweetalert2.min.css' },
{ path: 'dist/sweetalert2.min.js' },
],
},
],
],
success: [
'@semantic-release/github',
{
path: '@semantic-release/exec',
cmd: 'node tools/purge-jsdelivr.mjs',
},
],
}