From a49d5c89d871230b9504f52130d44d7bd0197e0b Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Fri, 1 Dec 2023 13:58:49 +0100 Subject: [PATCH] fix: set nodelix as a production dependency consumers were missing nodelix tasks because it was only listed for dev/test --- lib/mix/tasks/semantic_release.ex | 3 +-- lib/mix/tasks/semantic_release.install.ex | 5 ++--- mix.exs | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/mix/tasks/semantic_release.ex b/lib/mix/tasks/semantic_release.ex index 71bede6..cab29be 100644 --- a/lib/mix/tasks/semantic_release.ex +++ b/lib/mix/tasks/semantic_release.ex @@ -31,8 +31,7 @@ defmodule Mix.Tasks.SemanticRelease do def run(args) do Logger.debug("Running Semantic Release ...") - Mix.Task.run( - "nodelix", + Mix.Tasks.Nodelix.run( [ SemanticRelease.bin_path() ] ++ args diff --git a/lib/mix/tasks/semantic_release.install.ex b/lib/mix/tasks/semantic_release.install.ex index 9190df6..0090f54 100644 --- a/lib/mix/tasks/semantic_release.install.ex +++ b/lib/mix/tasks/semantic_release.install.ex @@ -23,8 +23,7 @@ defmodule Mix.Tasks.SemanticRelease.Install do def run(_) do Logger.debug("Installing dependencies ...") - Mix.Task.run( - "nodelix.npm", + Mix.Tasks.Nodelix.Npm.run( [ "install", "--silent", @@ -38,7 +37,7 @@ defmodule Mix.Tasks.SemanticRelease.Install do Logger.debug("Auditing signatures ...") - Mix.Task.run("nodelix.npm", [ + Mix.Tasks.Nodelix.Npm.run([ "audit", "signatures", "--silent", diff --git a/mix.exs b/mix.exs index 687b380..e055127 100644 --- a/mix.exs +++ b/mix.exs @@ -25,7 +25,7 @@ defmodule SemanticRelease.MixProject do defp deps do [ - {:nodelix, "1.0.0-alpha.8", only: [:dev, :test], runtime: false}, + {:nodelix, "1.0.0-alpha.8", runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} ]