Code Monkey home page Code Monkey logo

gha-npm-cache's People

Contributors

0x962 avatar dependabot[bot] avatar thisismydesign avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gha-npm-cache's Issues

Thank you!!

Including the npm caching logic in every GitHub Action I write is so annoying. Having this as a one-liner makes my logic so much cleaner :) Thanks for making this library!

compiled extensions are not cached

This GH Action will cache the OS-specific NPM directory, as per official recommendation. However this will not include compiled targets that modules ensure on postinstall, which (in my case) are found in node_modules.

I'm guessing this kind of support is out of scope for gha-npm-cache, but I want to create a paper trail for others.

Error: ENOENT: no such file or directory, open 'package-lock.json'

when I use this library, I see the GitHub Action failed with this error. please help me on this.

/usr/bin/uname
Linux
/opt/hostedtoolcache/node/14.17.1/x64/bin/npm config get cache
/home/runner/.npm
Error: Error: ENOENT: no such file or directory, open 'package-lock.json'

Multiple jobs support

Could it be possible to add the support for multiple jobs ?

I tried to use it the same way as it is used in steps, but it doesn't seems to be working correctly. (Getting errors module not found)

Could it be possible to have this feature ? It could be really useful instead of creating artifact and passing it around.

I'm fairly new to github actions, i can understand this is not something supported by actions (nor wanted maybe)

Cache not found

I'm using windows-latest in the workflow, and I'm trying to cache the dependencies so that the process runs faster. and I only get this message:

Run c-hive/gha-npm-cache@v1
"C:\Program Files\Git\usr\bin\uname.exe"
MSYS_NT-10.0-20348
C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\node\16.15.1\x64\npm.cmd config get cache"
npm WARN config global --global, --local are deprecated. Use --location=global instead.
C:\npm\cache
Cache keys: MSYS_NT-10.0-20348-npm-cache-1458c27d3e2bedec3251db8741195aca, MSYS_NT-10.0-20348-npm-cache-
Cache not found.

but at the end it gives me the message that the cache was saved:

Post job cleanup.
C:\Windows\System32\tar.exe -z -cf cache.tgz -P -C D:/a/novac-system/novac-system --files-from manifest.txt
Cache saved successfully.

I need help

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.