-
Notifications
You must be signed in to change notification settings - Fork 8
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
chore(build): update version bumper #1990
Conversation
It looks like we need to revisit the approach. As was discovered in #2003 the version bumping can be handled via existing npm processes, nevertheless we still need a solution for meta information update which |
@@ -9,7 +9,7 @@ | |||
"test": "jest", | |||
"clean": "rimraf dist", | |||
"build": "npm run clean && tsc --project tsconfig.json", | |||
"version": "node ../build/bump.js" | |||
"version": "node ../build/bump.js $npm_package_version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need env $npm_package_version here, because
- it is already in
process.env
, while mentioning it here produces problems on windows machines (out of cross-env runner) - action in version hook is executed after native npm version process so the actual version is also presented inside current package.json
- filePath: 'package.json' | ||
patterns: | ||
- '"name"\s*:\s*"\@exadel\/eslint-plugin-esl"[^{}]*"version"\s*:\s*"(\d+\.\d+\.\d+)"' | ||
- '"@exadel\/esl\": \"\^(\d+\.\d+\.\d+)\"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears to be incorrect, as I mentioned earlier.
The native npm version processes the version section and dependencies without our interventions.
After a deeper investigation it appears to be that we no longer require any additional actions at all. |
After looking up the solutions for automatic version update, it was decided to enhance our own already made solution
#1529