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

Update Jenkinsfile to use NPM CLI v8 on Windows #4215

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

kraenhansen
Copy link
Member

What, How & Why?

This fixes #4202

☑️ ToDos

  • 📝 Changelog entry
  • 📝 Compatibility label is updated or copied from previous entry
  • 🚦 Tests
  • 📱 Check the React Native/other sample apps work if necessary
  • 📝 Public documentation PR created or is not necessary
  • 💥 Breaking label has been applied or is not necessary

Comment on lines +240 to +241
bat "nodist add ${nodeVersion}"
bat "nodist npm add ${npmVersion}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
bat "nodist add ${nodeVersion}"
bat "nodist npm add ${npmVersion}"
bat """
nodist add ${nodeVersion}
nodist npm add ${npmVersion}
"""

You can use a single shell block to run both commands.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the suggestion. I like the simplicity of separating these. In my opinion it makes it simpler to determine what command failed.

@@ -505,9 +509,11 @@ def testWindows(nodeVersion) {
node('windows && nodist') {
unstash 'source'
bat "nodist add ${nodeVersion}"
bat "nodist npm add ${npmVersion}"
Copy link
Member

Choose a reason for hiding this comment

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

You can run both commands in a single block, see previous suggestion.

@kraenhansen kraenhansen merged commit d015d23 into master Jan 13, 2022
@kraenhansen kraenhansen deleted the kh/npm-8-on-windows branch January 13, 2022 11:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade nodist, enabling switching to NPM v7 on CI
2 participants