Opened 3 years ago
Closed 3 years ago
#53584 closed enhancement (fixed)
Update `actions/setup-node` and use the builtin cache feature
Reported by: | desrosj | Owned by: | desrosj |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
As of version 2.2.2, caching for NPM dependencies is now built into the action/setup-action action. This simplifies workflows utilizing NPM by eliminating the need for a separate step using actions/cache
.
The cache key used will be ${{ runner.os }}-npm-${{ hashFiles('') }}
, which is the same cache as recommended in the actions/cache
documentation.
See actions/setup-node#272 or https://github.blog/changelog/2021-07-02-github-actions-setup-node-now-supports-dependency-caching/ for more information.
Change History (2)
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/53584