Skip to content

Commit

Permalink
fix: update npm during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Mar 25, 2024
1 parent 7e78e81 commit 7182e26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/mix/tasks/semantic_release.install.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ defmodule Mix.Tasks.SemanticRelease.Install do
Nodelix.VersionManager.install(node_version)
end

Logger.debug("Updating npm version ...")

Mix.Tasks.Nodelix.Npm.run(
[
"install",
"--global",
"--prefix",
SemanticRelease.install_path(),
"npm@latest",
]
)

Logger.debug("Installing dependencies ...")

Mix.Tasks.Nodelix.Npm.run(
Expand Down

0 comments on commit 7182e26

Please sign in to comment.