From febce120838dffbf0b81868f54a68dfe8972e7e9 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Tue, 12 Oct 2021 21:16:42 +0200 Subject: [PATCH] ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows --- .github/workflows/npm-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1b79b9e2..760970b2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -12,9 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 + cache: npm - run: npm ci - run: npm build @@ -23,11 +24,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2 with: node-version: 12 registry-url: https://registry.npmjs.org/ + cache: npm - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}