Enable npm caching in GitHub Actions
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 18 Aug 2021 14:57:25 +0000 (16:57 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 18 Aug 2021 14:57:25 +0000 (16:57 +0200)
.github/workflows/typescript.yml

index 49a7f8c8c6d1c3d69be3e8a476a1a3bb75f56b42..2b352b57f8cc0f9a741f28df86b54ebf47225c60 100644 (file)
@@ -18,6 +18,7 @@ jobs:
       uses: actions/setup-node@v2
       with:
         node-version: "14"
+        cache: "npm"
     - uses: actions/checkout@v2
     - run: npm install
     - run: npx tsc --noEmit
@@ -33,6 +34,7 @@ jobs:
       uses: actions/setup-node@v2
       with:
         node-version: "14"
+        cache: "npm"
     - uses: actions/checkout@v2
     - run: npm install
     - run: npx eslint .
@@ -47,6 +49,7 @@ jobs:
       uses: actions/setup-node@v2
       with:
         node-version: "14"
+        cache: "npm"
     - uses: actions/checkout@v2
     - run: npm install
     - run: npx tsc