-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Node Version CI Update #19978
Node Version CI Update #19978
Conversation
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.
Neat! Thanks for this 🤩
- name: Set up node and yarn | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: ${{ steps.node-version.outputs.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.
Hey, I think we can slightly streamline this workflow by using the Node version file option.
The suggestion below means that we wouldn't need the Read node version from .nvmrc
step. We use something similar when setting up Go and had no issues so far, you can see an example here.
node-version: ${{ steps.node-version.outputs.version}} | |
node-version-file: './ui/.nvmrc' |
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.
@kubawi that is definitely a more streamlined option and since that option supports using package.json
that's even better. Thanks for the suggestion! The test-enos-scenario-ui.yml
workflow was doing something similar for both the go and node versions so I updated it there as well if you wouldn't mind having a look.
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.
Yep, looks good. I left an approval on the PR 👍
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.
LGTM
To simplify updating the node version used to build the UI, this PR updates the
ci
andbuild-vault-oss
github workflows to read the node version from theui/.nvmrc
file.