Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行npm run release失败 #54

Open
treadmoon opened this issue Sep 27, 2023 · 1 comment
Open

执行npm run release失败 #54

treadmoon opened this issue Sep 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@treadmoon
Copy link

执行npm run release失败

执行npm run release报:

⧗   input: $npm_package_version
✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

✖   found 2 problems, 0 warnings

应该是执行到 git commit没有给正确格式的提交信息

环境

  • 系统:windows10
  • node版本:v16.16.0
  • npm版本:8.11.0

其他

如上所示,执行npm run releasegit commit失败。再次执行时,又会重新开始test、build,是否有办法接着上次的git commit继续执行呢?

@yanhaijing
Copy link
Owner

yanhaijing commented Sep 28, 2023

收到,加了commitlint了,但是这个release并不支持windows,感觉得换个工具了

npm run release 里面的$npm_package_version并未被正确替换为版本号,windows的scripts和mac不一样

"release": "npm test && npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags"

mac上release会提交一个版本号的commit,如下图所示,看来需要一个发包工具

image

@yanhaijing yanhaijing added the bug Something isn't working label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants