[recnet-release-action] cache gh action build output #330
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Cache the output of
nx build recnet-release-action
using the hash of source code inlibs/recnet-release-action/src
to accelerate gh actionRelated Issue
Notes
Successful run 1 (cache miss): https://github.com/lil-lab/recnet/actions/runs/11335345342/attempts/1
Successful run 2 (cache hit): https://github.com/lil-lab/recnet/actions/runs/11335345342
Test
Screenshots (if appropriate):
You can see in the first run, cache doesn't hit, and the action start downloading node packages and compiling the typescript files.
And it saves the output in cache in the end of first successful run.
In the second run, you can see it did hit the cache and skip the downloading and compiiing steps
TODO
console.log
orconsole.error
for debug usagerecnet-docs
if needed