AlexKVal/release-script

Optional npm run build Step

mjhasbach opened this issue · 1 comments

In my use case, I just want release-script to bump / commit / push package.json, author a GitHub release, and run npm publish.

If package.json is missing a build script, release-script fails with an error, so I had to manually add a dummy script.

"scripts": {
  "build": "echo 0"
}

This script was designed exactly for projects that needs build step. That is the cause why it runs npm run build.
But I don't see any hindrance to allow it just skip build step if there is no such in package.json.
I'll make patch and we can discuss it there 😉