forked from ncats/semantic-release-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
angular-lib.js
32 lines (29 loc) · 1.03 KB
/
angular-lib.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
/* This file configures the release of packages as Angular AOT Libraries. */
const path = require('path');
/* We will pass this value in a shell call below,
so we should make the path absolute to avoid inconsistencies */
const rootPackageScriptLocation = path.resolve(__dirname, './scripts/update-root-package.js');
module.exports = {
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
/* Only publish the dist folder */
{
"pkgRoot": "dist"
}
],
[
"@semantic-release/exec",
/* Update root package.json and package-lock.json BEFORE git and github run,
otherwise new version would not be commited automatically */
{
"prepareCmd": `node ${rootPackageScriptLocation}`
}
],
"@semantic-release/git",
"@semantic-release/github"
]
}