-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathrelease.config.js
More file actions
37 lines (37 loc) · 858 Bytes
/
release.config.js
File metadata and controls
37 lines (37 loc) · 858 Bytes
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
let publishCmd = `
docker build -t "$IMAGE_NAME:\${nextRelease.version}" -t "$IMAGE_NAME:latest" .
docker push --all-tags "$IMAGE_NAME"
`
let config = require("semantic-release-preconfigured-conventional-commits");
config.tagFormat = "nanopub-${version}"
config.branches = ["release"]
config.plugins.push(
[
"@terrestris/maven-semantic-release",
{
"mavenTarget": "deploy",
"settingsPath": "./settings.xml",
"updateSnapshotVersion": true,
"mvnw": true
}
],
[
"@semantic-release/exec",
{
"publishCmd": publishCmd
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "target/nanopub-*-jar-with-dependencies.jar",
"label": "JAR for CLI usage (v${nextRelease.version})"
},
]
}
],
"@semantic-release/git"
)
module.exports = config