|
|
@ -14,7 +14,7 @@ aliases: |
|
|
command: yarn install |
|
|
command: yarn install |
|
|
check_formatting: &check_formatting |
|
|
check_formatting: &check_formatting |
|
|
run: |
|
|
run: |
|
|
command: yarn format:check |
|
|
|
|
|
|
|
|
command: yarn format:write && yarn format:check |
|
|
save_cache: &save_cache |
|
|
save_cache: &save_cache |
|
|
save_cache: |
|
|
save_cache: |
|
|
key: yarn-cache-netlify-{{ checksum "yarn.lock" }} |
|
|
key: yarn-cache-netlify-{{ checksum "yarn.lock" }} |
|
|
@ -29,7 +29,6 @@ jobs: |
|
|
executor: node |
|
|
executor: node |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
- <<: *check_formatting |
|
|
|
|
|
- <<: *restore_cache |
|
|
- <<: *restore_cache |
|
|
- <<: *install_node_modules |
|
|
- <<: *install_node_modules |
|
|
- <<: *save_cache |
|
|
- <<: *save_cache |
|
|
@ -40,6 +39,7 @@ jobs: |
|
|
executor: node |
|
|
executor: node |
|
|
steps: |
|
|
steps: |
|
|
- checkout |
|
|
- checkout |
|
|
|
|
|
- <<: *check_formatting |
|
|
- <<: *restore_cache |
|
|
- <<: *restore_cache |
|
|
- <<: *install_node_modules |
|
|
- <<: *install_node_modules |
|
|
- run: |
|
|
- run: |
|
|
@ -80,4 +80,4 @@ workflows: |
|
|
- build |
|
|
- build |
|
|
filters: |
|
|
filters: |
|
|
branches: |
|
|
branches: |
|
|
only: main |
|
|
|
|
|
|
|
|
only: main |