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: enable cache for npm on GitHub Actions #629
chore: enable cache for npm on GitHub Actions #629
Conversation
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" |
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.
The only real change is in this line. Other lines were changed by Prettier via my text editor formatter.
Codecov Report
@@ Coverage Diff @@
## master #629 +/- ##
=======================================
Coverage 51.39% 51.39%
=======================================
Files 24 24
Lines 1043 1043
Branches 198 198
=======================================
Hits 536 536
Misses 459 459
Partials 48 48 |
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.
👍 Great 👏
@sosukesuzuki Should we use |
@koba04 No, maybe we can use |
@sosukesuzuki Thanks! That makes sense. |
ref: https://github.com/actions/setup-node#caching-packages-dependencies
Now we can enable cache for npm dependencies with
actions/setup-node@v2