From 5d96d517df3357c515c1aa3ca8b87e5179cbab0c Mon Sep 17 00:00:00 2001 From: itsMapleLeaf <19603573+itsMapleLeaf@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:10:05 -0500 Subject: [PATCH] add cache and autocommit --- .github/workflows/lint.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2b0f1c2..2b5b943 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,20 +16,21 @@ concurrency: jobs: lint: - strategy: - fail-fast: false - matrix: - script: ["prettier", "eslint", "tsc", "tsc-root"] - name: lint (${{ matrix.script }}) runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: node_modules + key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} - uses: pnpm/action-setup@v2 with: version: 8 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 18 cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm run lint:${{ matrix.script }} + - run: pnpm run lint + - uses: stefanzweifel/git-auto-commit-action@v4 + if: true