[wp-trac] [WordPress Trac] #53584: Update `actions/setup-node` and use the builtin cache feature
WordPress Trac
noreply at wordpress.org
Tue Jul 6 13:12:27 UTC 2021
#53584: Update `actions/setup-node` and use the builtin cache feature
------------------------------+----------------------
Reporter: desrosj | Owner: desrosj
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
------------------------------+----------------------
Changes (by desrosj):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"51341" 51341]:
{{{
#!CommitTicketReference repository="" revision="51341"
Build/Test Tools: Use caching built into `actions/setup-node`.
This updates the `actions/setup-node` action to version 2.2.2 and takes
advantage of the cache feature now built in. This removes the need for an
additional step using `actions/cache` to cache NPM dependencies.
The cache key used will be `${{ runner.os }}-npm-${{ hashFiles('') }}`,
which matches the recommendation in the `actions/cache` documentation and
the key currently in use in the WordPress workflows.
Props gziolo.
Fixes #53584.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53584#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list