feat: Automatically bump versions in mix.exs
This commit is contained in:
parent
7e3fda08cc
commit
b3539cd900
6 changed files with 257 additions and 10932 deletions
|
@ -1,6 +1,8 @@
|
|||
defmodule Legendary.Admin.MixProject do
|
||||
use Mix.Project
|
||||
|
||||
@version "2.0.0"
|
||||
|
||||
def project do
|
||||
[
|
||||
app: :admin,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
defmodule Legendary.Content.MixProject do
|
||||
use Mix.Project
|
||||
|
||||
@version "2.0.0"
|
||||
|
||||
def project do
|
||||
[
|
||||
app: :content,
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
defmodule Legendary.Core.MixProject do
|
||||
use Mix.Project
|
||||
|
||||
@version "2.0.0"
|
||||
|
||||
def project do
|
||||
[
|
||||
app: :core,
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -1,6 +1,8 @@
|
|||
defmodule Legendary.Mixfile do
|
||||
use Mix.Project
|
||||
|
||||
@version "2.0.0"
|
||||
|
||||
def project do
|
||||
[
|
||||
name: "Legendary",
|
||||
|
|
11134
package-lock.json
generated
11134
package-lock.json
generated
File diff suppressed because it is too large
Load diff
47
package.json
47
package.json
|
@ -18,6 +18,7 @@
|
|||
},
|
||||
"homepage": "https://gitlab.com/mythic-insight/legendary#readme",
|
||||
"devDependencies": {
|
||||
"@google/semantic-release-replace-plugin": "^1.0.2",
|
||||
"@semantic-release/commit-analyzer": "^6.1.0",
|
||||
"@semantic-release/exec": "^5.0.0",
|
||||
"@semantic-release/git": "^7.0.8",
|
||||
|
@ -27,7 +28,45 @@
|
|||
},
|
||||
"release": {
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer"
|
||||
"@semantic-release/commit-analyzer",
|
||||
[
|
||||
"@google/semantic-release-replace-plugin",
|
||||
{
|
||||
"replacements": [
|
||||
{
|
||||
"files": ["mix.exs", "apps/admin/mix.exs", "apps/content/mix.exs", "apps/core/mix.exs"],
|
||||
"from": "@version \".*\"",
|
||||
"to": "@version \"${nextRelease.version}\"",
|
||||
"results": [
|
||||
{
|
||||
"file": "mix.exs",
|
||||
"hasChanged": true,
|
||||
"numMatches": 1,
|
||||
"numReplacements": 1
|
||||
},
|
||||
{
|
||||
"file": "apps/admin/mix.exs",
|
||||
"hasChanged": true,
|
||||
"numMatches": 1,
|
||||
"numReplacements": 1
|
||||
},
|
||||
{
|
||||
"file": "apps/content/mix.exs",
|
||||
"hasChanged": true,
|
||||
"numMatches": 1,
|
||||
"numReplacements": 1
|
||||
},{
|
||||
"file": "apps/core/mix.exs",
|
||||
"hasChanged": true,
|
||||
"numMatches": 1,
|
||||
"numReplacements": 1
|
||||
}
|
||||
],
|
||||
"countMatches": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"prepare": [
|
||||
"@semantic-release/npm",
|
||||
|
@ -42,7 +81,11 @@
|
|||
{
|
||||
"assets": [
|
||||
"package.json",
|
||||
"infrastructure/kube.yaml"
|
||||
"infrastructure/kube.yaml",
|
||||
"mix.exs",
|
||||
"apps/admin/mix.exs",
|
||||
"apps/content/mix.exs",
|
||||
"apps/core/mix.exs"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue