Browse Source

ci: cache ~/.npm and use latest npm

Renée Kooi 6 năm trước cách đây
mục cha
commit
2410636484
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      .travis.yml

+ 3 - 2
.travis.yml

@@ -15,8 +15,9 @@ addons:
 cache:
   apt: true
   directories:
-  - node_modules
-  - website/node_modules
+  - ~/.npm
+before_install:
+- nvm install-latest-npm
 script:
 - npm run web:install
 - npm run build