From 4b42e3d3d637ffd8522480639b32780075541e36 Mon Sep 17 00:00:00 2001 From: Michael Cousins Date: Sun, 8 Oct 2023 15:20:38 -0400 Subject: [PATCH] ci: use common JS setup action (#4) --- .github/workflows/ci.yaml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d8bb9b4..22a6b80 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,19 +22,10 @@ jobs: - name: Checkout source uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd - with: - run_install: true - - - name: Install Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + - name: Install Node.js and dependencies + uses: mcous/js/actions/setup@main with: node-version: ${{ matrix.node-version }} - cache: pnpm - - - name: Install dependencies - run: pnpm install - name: Run tests run: pnpm coverage @@ -63,19 +54,8 @@ jobs: - name: Checkout source uses: actions/checkout@v3 - - name: Install pnpm - uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd - with: - run_install: true - - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: pnpm - - - name: Install dependencies - run: pnpm install + - name: Install Node.js and dependencies + uses: mcous/js/actions/setup@main - name: Build and check run: pnpm build-and-check