-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
111 lines (111 loc) · 3.22 KB
/
package.json
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "prism-node",
"version": "2.5.0",
"engines": {
"node": ">=16.13.0"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"conventional-changelog-conventionalcommits": "^5.0.0",
"gradle-semantic-release-plugin": "1.7.3",
"husky": "^8.0.1",
"pinst": "^3.0.0",
"prettier": "^2.7.1",
"semantic-release": "^19.0.3",
"semantic-release-slack-bot": "^3.5.3"
},
"release": {
"branches": [
{
"name": "main"
},
{
"name": "prerelease/*",
"prerelease": "snapshot"
}
],
"tagFormat": "v${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "npm version ${nextRelease.version} --git-tag-version false"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "sbt \"release release-version ${nextRelease.version} next-version ${nextRelease.version}-SNAPSHOT with-defaults\""
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "docker buildx build --platform=linux/arm64,linux/amd64 --push -t ghcr.io/input-output-hk/prism-node:${nextRelease.version} ./target/docker/stage"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq eval -i '.appVersion = \"${nextRelease.version}\" | .version = \"${nextRelease.version}\"' ./infrastructure/charts/node/Chart.yaml"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm package -d infrastructure/charts -u infrastructure/charts/node"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "helm repo index --url \"https://raw.githubusercontent.com/input-output-hk/atala-prism/main/infrastructure/charts\" --merge index.yaml infrastructure/charts"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq -i -P infrastructure/charts/index.yaml"
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": [
"version.sbt",
"CHANGELOG.md",
"package.json",
"package-lock.json",
"infrastructure/charts/node/Chart.yaml",
"infrastructure/charts/index.yaml",
"infrastructure/charts/*.tgz"
],
"message": "chore(release): cut prism node ${nextRelease.version} release\n\n${nextRelease.notes}"
}
],
[
"semantic-release-slack-bot",
{
"notifyOnSuccess": true,
"notifyOnFail": true,
"markdownReleaseNotes": true,
"onSuccessTemplate": {
"text": "A new version of Atala PRISM Node released!\nVersion: `$npm_package_version`\nTag: $repo_url/releases/tag/v$npm_package_version\n\nRelease notes:\n$release_notes"
}
}
]
]
}
}