chore(deps): update dependency eslint-plugin-unicorn to v54 #189
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cache build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
cache-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to main | |
uses: actions/checkout@v3 | |
- name: Check build cache | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: dist | |
key: ${{ hashFiles('./yarn.lock', './src/**', './rollup.config.js', './jest.config.js') }} | |
- name: Setup Node.js when no cache found | |
if: steps.cache.outputs.cache-hit != 'true' | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Create a new build when no cache found | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
yarn install --frozen-lockfile | |
yarn test | |
yarn build |