File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,12 @@ jobs: # a collection of steps
1818
1919      - restore_cache : #  special step to restore the dependency cache
2020          #  Read about caching dependencies: https://circleci.com/docs/2.0/caching/
21-           key : dependency-cache-{{ checksum "package.json" }} 
21+           key : dependency-cache-{{ checksum "package-lock .json" }} 
2222      - run :
2323          name : npm install 
2424          command : npm install 
2525      - save_cache : #  special step to save the dependency cache
26-           key : dependency-cache-{{ checksum "package.json" }} 
26+           key : dependency-cache-{{ checksum "package-lock .json" }} 
2727          paths :
2828            - ./node_modules 
2929
@@ -45,13 +45,40 @@ jobs: # a collection of steps
4545    docker :
4646      - image : circleci/ruby:2.5.3-stretch 
4747    steps :
48+       - add_ssh_keys :
49+           fingerprints :
50+             - " 27:8b:f5:af:bc:66:a9:db:bf:d2:02:4a:cc:d0:58:6d" 
4851      - checkout 
52+       - run :
53+           name : checkout repo and submodules 
54+           command : git submodule update --init --recursive 
4955      - run :
5056          name : bundler version 
5157          command : bundle -v 
5258      - run :
5359          name : ruby version 
5460          command : ruby -v 
61+       - run :
62+           name : go to directory 
63+           command : cd book/config 
64+ 
65+       #  Restore bundle cache
66+       - restore_cache :
67+           keys :
68+             - ruby-{{ checksum "Gemfile.lock" }} 
69+             - ruby- 
70+       - run :
71+           name : Bundle Install 
72+           command : bundle check || bundle install 
73+       #  Store bundle cache
74+       - save_cache :
75+           key : ruby-{{ checksum "Gemfile.lock" }} 
76+           paths :
77+             - vendor/bundle 
78+ 
79+       - run :
80+           name : generate PDF 
81+           command : make pdf 
5582
5683workflows :
5784  version : 2 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments