diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9d13b17..3199b29 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -19,30 +19,26 @@ jobs: - name: Checkout Code uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 + - name: Setup pnpm + uses: pnpm/action-setup@v2 with: - node-version-file: .nvmrc + version: 8 - - name: Cache node_modules - uses: actions/cache@v4 + - name: Setup Node + uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 with: - path: | - **/node_modules - key: | - node-${{ hashfiles('**/package-lock.json') }} - restore-keys: | - node- + node-version-file: .nvmrc + cache: pnpm - name: Install Packages - run: npm install + run: pnpm install - name: Format - run: npm run format + run: pnpm run format - name: Lint - run: npm run lint + run: pnpm run lint # Enable in production # - name: Test - # run: npm test + # run: pnpm test