conventional-changelog/standard-version

Invalid path in lifecycle script

オープン

#433 opened on 2019/08/13

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (825 件のフォーク)batch import
help wantedquestion

Repository metrics

Stars
 (7,442 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド