conventional-changelog/standard-version

Invalid path in lifecycle script

開放

#433 建立於 2019年8月13日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (825 個分叉)batch import
help wantedquestion

倉庫指標

星標
 (7,442 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南