Skip to content

Commit 3b3c1c2

Browse files
committed
fix(scripts): modified scripts and readme
1 parent af6d8db commit 3b3c1c2

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# semantic-release
22

3+
Semantic release scripts to release with the following CI:
4+
- jenkins
5+
- circleci
36

47
## Installation:
5-
`npm i -D -E @kube-js/semantic-release@latest`
8+
`npm i -D -E @kube-js/semantic-release`
9+
10+
Credits:
11+
[https://github.com/ryansmith94](ryansmith94)

scripts/public-circleci-app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/local/bin/node
21
const path = require("path");
32
const semanticRelease = require("../utils/semanticRelease");
43
const package = require("../utils/package");
@@ -19,7 +18,7 @@ semanticRelease({
1918
"@semantic-release/npm",
2019
{
2120
path: "semantic-release-docker",
22-
name: name
21+
name
2322
}
2423
]
2524
});

scripts/public-circleci-lib.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/local/bin/node
21
const path = require('path');
32
const semanticRelease = require('../utils/semanticRelease');
43

scripts/public-jenkins-app.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
#!/usr/local/bin/node
2-
const path = require('path');
3-
const semanticRelease = require('../utils/semanticRelease');
4-
const package = require('../utils/package');
1+
const path = require("path");
2+
const semanticRelease = require("../utils/semanticRelease");
3+
const package = require("../utils/package");
4+
5+
const [org, repo] = package.name.split("/");
6+
const name = `${org.replace(/[\W_]+/g, "")}/${repo}`;
57

68
semanticRelease({
79
branch: "master",
810
verifyConditions: [
911
{
10-
"path": "./node_modules/@krux/condition-jenkins"
12+
path: "./node_modules/@krux/condition-jenkins"
1113
},
1214
"semantic-release-docker",
1315
"@semantic-release/github",
1416
"@semantic-release/npm"
1517
],
16-
prepare: [
17-
"@semantic-release/npm"
18-
],
18+
prepare: ["@semantic-release/npm"],
1919
publish: [
2020
"@semantic-release/github",
2121
"@semantic-release/npm",
2222
{
23-
"path": "semantic-release-docker",
24-
"name": package.name.replace(/@/g, ''),
23+
path: "semantic-release-docker",
24+
name
2525
}
2626
]
27-
});
27+
});

scripts/public-jenkins-lib.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/local/bin/node
21
const path = require("path");
32
const semanticRelease = require("../utils/semanticRelease");
43

0 commit comments

Comments
 (0)