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

chore: pin node version #338

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: pin node version #338

wants to merge 1 commit into from

Conversation

adibmbrk
Copy link
Contributor

@adibmbrk adibmbrk commented Feb 10, 2025

Purpose

This PR pins the node version making it easier for developers to setup the oxygen ui project.

Related Issues

Related PRs

  • Related PR #1 or (None)

Checklist

  • Figma Board Updated. (Mandatory for Icon and Component PRs. If you don't have access, please ask the core team to update it.)
  • UX/UI review done on the final implementation.
  • Story provided. (Add screenshots)
  • Manual test round performed and verified.
  • Unit tests provided. (Add links if there are any)
  • Documentation provided. (Add links if there are any)

Security checks

savindi7
savindi7 previously approved these changes Feb 10, 2025
package.json Outdated
},
"engines": {
"node": "18.x",
"pnpm": ">=8.15.7 <9"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to pin PNPM version right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes @pavinduLakshan , PNPM seemed to be pinned in the release workflow , that's why I added it here, however we can remove it since the other workflows seem to be using the latest version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a valid reason we need to pin the pnpm version of the workflow as well. but it's not necessary here imo.. @adibmbrk let's remove pinning the pnpm version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the original problem we are trying to solve here.
Ideally, there should be an issue associated with the change.

@adibmbrk Shall we create one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, we should not pin versions here and there, if it is pinned in the workflow itself, then we shouldn't use the engines and vise-versa.

Copy link
Contributor Author

@adibmbrk adibmbrk Feb 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adibmbrk Shall we create one.

A similar issue exists #304

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, we should not pin versions here and there, if it is pinned in the workflow itself, then we shouldn't use the engines and vise-versa.

@brionmario IMO pinning the version in the workflow only corrects our CI, however developers setting up the repo locally will still face incompatible node-sass module due to incorrect node version, adding engines fixes that

@adibmbrk adibmbrk changed the title chore: pin node and pnpm version chore: pin node version Feb 10, 2025
pavinduLakshan
pavinduLakshan previously approved these changes Feb 10, 2025
@savindi7
Copy link
Contributor

37ba77f please update the commit message of this and follow the commit message guideline

@pavinduLakshan pavinduLakshan dismissed their stale review February 10, 2025 06:36

due to open review comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants