add cache and autocommit

This commit is contained in:
itsMapleLeaf
2023-09-27 12:10:05 -05:00
parent 2c706f6791
commit 5d96d517df

View File

@@ -16,20 +16,21 @@ concurrency:
jobs: jobs:
lint: lint:
strategy:
fail-fast: false
matrix:
script: ["prettier", "eslint", "tsc", "tsc-root"]
name: lint (${{ matrix.script }})
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - 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 - uses: pnpm/action-setup@v2
with: with:
version: 8 version: 8
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
cache: pnpm cache: pnpm
- run: pnpm install --frozen-lockfile - run: pnpm install --frozen-lockfile
- run: pnpm run lint:${{ matrix.script }} - run: pnpm run lint
- uses: stefanzweifel/git-auto-commit-action@v4
if: true