diff --git a/.github/actions/docker-publish/action.yml b/.github/actions/docker-publish/action.yml index bac91ef25b..e4984410bb 100644 --- a/.github/actions/docker-publish/action.yml +++ b/.github/actions/docker-publish/action.yml @@ -28,6 +28,10 @@ runs: uses: actions/setup-node@v3 with: node-version: 14 + cache: "npm" + cache-dependency-path: | + **/package-lock.json + **/npm-shrinkwrap.json - name: Run installation run: npm ci diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6d6e903abd..2ccb8c3451 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,6 +32,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: "npm" + cache-dependency-path: | + **/package-lock.json + **/npm-shrinkwrap.json - name: Add msbuild to PATH # we need msbuild tools for the `bcrypto` module diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9d6ed58afa..9218b29e60 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -23,6 +23,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: "npm" + cache-dependency-path: | + **/package-lock.json + **/npm-shrinkwrap.json - run: npm ci - run: npm run tsc - run: npm test @@ -53,6 +57,11 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} + cache: "npm" + cache-dependency-path: | + **/package-lock.json + **/npm-shrinkwrap.json + package-lock.json - name: Add msbuild to PATH # we need msbuild tools for the `bigint-buffer` module