Skip to content

Commit

Permalink
fix: update npm during installation
Browse files Browse the repository at this point in the history
references #2
  • Loading branch information
sheerlox committed Mar 25, 2024
1 parent 7e78e81 commit b5c34ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 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,16 @@ 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 b5c34ed

Please sign in to comment.