diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d9171b48..cdf09e65a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,8 +9,20 @@ jobs: run-checks-and-tests: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version-file: ".nvmrc" + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.npm + key: npm-${{ hashFiles('package-lock.json') }} + restore-keys: npm- + - name: Prettier run: npm run prettier:check - name: Lint TS