diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36474df..c4649e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + cache: 'npm' - run: npm ci - run: npm test - run: npm run lint diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index fbc60da..d799cd6 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + cache: 'npm' - run: npm ci - run: npm test - run: npm run lint @@ -26,6 +27,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + cache: 'npm' - run: echo "::set-output name=version::$(node -p -e "require('./package.json').version")" id: version - name: release @@ -48,6 +50,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: '16' + cache: 'npm' registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm publish --access public