diff --git a/.github/workflows/size-limit.yaml b/.github/workflows/size-limit.yaml index ba7d5113a7..3951247320 100644 --- a/.github/workflows/size-limit.yaml +++ b/.github/workflows/size-limit.yaml @@ -11,10 +11,16 @@ jobs: CI_JOB_NUMBER: 1 steps: - uses: actions/checkout@v4 - - name: Install - run: | - npm install -g pnpm - pnpm install + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install - uses: andresz1/size-limit-action@v1.7.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 18e8edf29a..3938f866cf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,24 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 + - uses: pnpm/action-setup@v2 with: - node-version: '16.x' - - - uses: actions/cache@v3 + version: 8 + - name: Use Node.js 20 + uses: actions/setup-node@v4 with: - path: | - ~/.npm - ~/.config/yarn/global - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node- + node-version: 20 + cache: 'pnpm' - - name: Install pnpm - run: | - npm install -g pnpm - pnpm install + - name: Install dependencies + run: pnpm install - name: ESLint run: pnpm lint