FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update node modules PR check with fixed `npm` version by angelapwen · Pull Request #1357 · github/codeql-action · GitHub

Update node modules PR check with fixed npm version - #1357

Closed
angelapwen wants to merge 5 commits into
github:mainfrom
angelapwen:fix-node-modules-check
Closed

angelapwen wants to merge 5 commits into
github:mainfrom
angelapwen:fix-node-modules-check

Conversation

angelapwen commented Nov 10, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

We used to always use the latest version of npm in this PR check, but the most recent version of npm would create a different package-lock.json file that causes the PR check to fail. We are unable to update this package-lock.json file because it would not be backwards compatible, so instead we are pinning the PR check to version 8.19.2.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Comment thread .github/workflows/pr-checks.yml Outdated
angelapwen mentioned this pull request Nov 10, 2022
3 tasks
angelapwen changed the title Add node setup step to Check node modules PR check Update node modules with new npm version Nov 10, 2022
angelapwen changed the title Update node modules with new npm version Update node modules PR check with fixed npm version Nov 10, 2022
angelapwen marked this pull request as ready for review November 11, 2022 00:00
angelapwen requested a review from a team as a code owner November 11, 2022 00:00
if [ ! -z "$(git status --porcelain)" ]; then
# If we get a fail here then the PR needs attention
>&2 echo "Failed: node_modules are not up to date. Run 'npm ci && npm run removeNPMAbsolutePaths' on a macOS machine to update. Note it is important this command is run on macOS and not any other operating system as there is one dependency (fsevents) that is needed for macOS and may not be installed if the command is run on a Windows or Linux machine."
>&2 echo "Failed: node_modules are not up to date. Run 'npm ci && npm run removeNPMAbsolutePaths' on a macOS machine to update and commit. Note it is important this command is run on macOS and not any other operating system as there is one dependency (fsevents) that is needed for macOS and may not be installed if the command is run on a Windows or Linux machine. If there are no changes, run 'npm install --force -g npm@latest' with root permissions first."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Are we going to pin to v8.19.2? I don't think we can move to package-lock v3 while we also need to support node v12.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The latest v8 release (8.19.3) of npm is compatible with Node 12. I think package-lock v3 should be compatible with Node 12 since the package-lock is only consumed by npm

Copy link
Copy Markdown
Contributor Author

Closing as this PR check was fixed in #1348

angelapwen closed this Nov 14, 2022
angelapwen deleted the fix-node-modules-check branch November 14, 2022 17:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL