conventional-changelog/standard-version

Invalid path in lifecycle script

Open

#433 geöffnet am 13. Aug. 2019

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (825 Forks)batch import
help wantedquestion

Repository-Metriken

Stars
 (7.442 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I'm trying to replace the version number in one of my project's file at the postbump lifecycle script:

"scripts": {
  "postbump": "sed -i -r 's/(<span id=\"app-version\">)[^<]*(<\\/span>)/\\1$npm_package_version\\2/' app/views/footer.scala.html && git add app/views/footer.scala.html"
}

I tested the command beforehand and it works, but when I run it in the lifecycle, I get

The specified path is invalid. Error

I know the specified path is actually valid, so the problem must be elsewhere.

Contributor Guide