limjh16 / jekyll-action-ts

:hammer: https://github.com/helaili/jekyll-action but without Docker
MIT License
44 stars 19 forks source link

Add flag for only installing dependencies #11

Closed magneticflux- closed 3 years ago

magneticflux- commented 3 years ago

I want to install dependencies for linting using the cache, but don't want to spend the time building the site.

limjh16 commented 3 years ago

Hi there! may I know what is the use case for this feature?

magneticflux- commented 3 years ago

I want to simply install Bundler dependencies using the cache without running a page build.

limjh16 commented 3 years ago

In that case, I don't think this action would be suitable since it is mainly used for jekyll pages, so if you don't run the page build then I don't really see the need for this. Maybe you can try using https://github.com/ruby/setup-ruby/, it may suit your needs better.

magneticflux- commented 3 years ago

Sorry, I didn't realize setup-ruby already handled caching bundler dependencies here: https://github.com/ruby/setup-ruby/#caching-bundle-install-automatically I think using that makes a lot more sense in an advanced use-case like this!