[wp-trac] [WordPress Trac] #53584: Update `actions/setup-node` and use the builtin cache feature
WordPress Trac
noreply at wordpress.org
Mon Jul 5 01:13:51 UTC 2021
#53584: Update `actions/setup-node` and use the builtin cache feature
------------------------------+-----------------------
Reporter: desrosj | Owner: desrosj
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------
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 [https://github.com/actions/setup-node/pull/272 actions/setup-
node#272] or https://github.blog/changelog/2021-07-02-github-actions-
setup-node-now-supports-dependency-caching/ for more information.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53584>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list