-
Notifications
You must be signed in to change notification settings - Fork 44
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: install psc-package
via a NPM script
#3386
chore: install psc-package
via a NPM script
#3386
Conversation
We have been failing to install `psc-package` since we upgraded NPM to version 7. So we should install the package via a NPM script.
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.
Looks pretty good, may just want to tweak description to also mention this was triggered due to issues with renovate.
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.
Cool, so just the one comment around the left over GHA step, and still need to pin those deps.
Can I mention this was triggered due to issues with renovate in the merge commit ? |
Good to have both places. At least if you just duck up and edit the merge request description it'll be there nice and loud for if we need to reference back to it. And then if you put it in the merge commit it will be nicely there for future prosperity on the quite. |
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! 👍
Cool. I have updated the PR description. |
Ah GHA is still using NPM 6... |
Failed on
|
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.
Good job @PenghaiZhang ! Looks like you've pretty well won. 🎉
Just need to remove that bit of redundant code in install.js
and then you should be GTG. 👍
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "${{ steps.nvm.outputs.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.
Did you know that setup-node
comes with caching now?
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
cache: npm |
Read the readme and learn more here: https://github.com/actions/setup-node#caching-packages-dependencies.
By the way setup-java
comes with caching as well, but I don't know much about Java, so won't apply any suggestions here.
https://github.com/actions/setup-java#caching-packages-dependencies
Also check if the version of setup-java
you're using comes with the caching capability before you turn it on for Java.
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's a nice new feature. Thanks for letting us know. We'll have a look and see what we might be able to refactor, because the build definition sure is long.
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.
@edalex-ian Do you want me to make an issue with the same text? That way I'm not blocking this PR, and you can track the issue that way, and follow up when you have time to work on it.
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'd be great thanks @HonkingGoose. 👍
I'll go and merge this in the meantime. 😉
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.
See issue #3390 for the "feature request".
Checklist
Description of change
With NPM 7
psc-package
is not installed properly. So we created a new NPM script which will downloaded the package and use it.This issue was originally found in
renovate
PRs (e.g. #3380 ) which failed to updatepackage-lock.json
.