Cache Rails assets generated by webpacker

Did anyone successfully manage to cache Rails webpacker precompiled assets in GH actions?

Our test process after installing gems and packages, precompiles assets via bin/rails assets:precompile command and then runs test suit.

I cannot find a proper way to do it.