-
Notifications
You must be signed in to change notification settings - Fork 2
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
build(workflow): same node version on all stages #1319
Conversation
7af0f9f
to
cdad51a
Compare
.tool-versions
Outdated
@@ -0,0 +1 @@ | |||
nodejs 21.4.0 |
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.
@Elweyn what's the version that we're using in production? On my vagrant machine on alpine 3.19 it's still v18
.
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.
We checked and its also different between production
and staging
:
Prod: v20.11.1
Stage: v20.12.1
@@ -9,13 +9,13 @@ jobs: | |||
runs-on: ubuntu-latest | |||
env: | |||
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN_ADMIN }} | |||
WORKING_DIRECTORY: ./admin |
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.
This is not related to nodejs
but there is absolutely no reason why we should pollute process.env
and have no benefit of another variable WORKING_DIRECTORY
if we're using it only once.
8d8b42e
to
2689076
Compare
bd94773
to
ca3be47
Compare
a678f3c
to
2cec036
Compare
@@ -87,7 +87,7 @@ | |||
"#types/*": "./src/graphql/types/*" | |||
}, | |||
"engines": { | |||
"node": ">=21" | |||
"node": ">=20" |
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.
That one is important for eslint
.
"typescript": "^5.5.2" | ||
}, | ||
"engines": { | ||
"node": ">=21" |
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.
That one was obsolete.
bafb1a3
to
70d993d
Compare
"devDependencies": { | ||
"@vuepress/bundler-vite": "^2.0.0-rc.11", | ||
"@vuepress/theme-default": "^2.0.0-rc.35", |
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.
Unrelated, missing from #1325
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.
One question: Does this mean, that every developer must use asdf?
No, it is completely up to the developer what they use. As written in the README just make sure that you use the node version specified in We just have to save the version in some file. Workflows shall take this file as a reference. Good? |
dc736ec
to
6854a5b
Compare
Motivation ---------- These volumes are not in use, let's remove them. As the comment says, the original intention was to have a different node version in the container and the host. This is something that we *don't* want. We want to use the same node version *always*, see #1319. How to test ----------- 1. Nothing to test, disabled code.
Motivation ---------- These volumes are not in use, let's remove them. As the comment says, the original intention was to have a different node version in the container and the host. This is something that we *don't* want. We want to use the same node version *always*, see #1319. How to test ----------- 1. Nothing to test, disabled code.
Motivation ---------- These volumes are not in use, let's remove them. As the comment says, the original intention was to have a different node version in the container and the host. This is something that we *don't* want. We want to use the same node version *always*, see #1319. How to test ----------- 1. Nothing to test, disabled code.
Motivation ---------- We have completely different `node --version`s on local development, build server (even in different jobs) and production. My suggestion is that we configure the node version in a central file in the root folder and reference it from everywhere. For me, any version manager is fine. If I have the choice, I suggest [asdf-vm]](https://github.com/asdf-vm/asdf). How to test ----------- 1. Check status checks
Motivation
We have completely different
node --version
s on local development,build server (even in different jobs) and production.
My suggestion is that we configure the node version in a central file in
the root folder and reference it from everywhere.
For me, any version manager is fine. If I have the choice, I suggest
asdf-vm.
How to test