diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a33a881..8b46e7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,14 +46,20 @@ jobs: runs-on: ${{matrix.platform}} steps: - - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 16 - - uses: pnpm/action-setup@v2.2.2 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 with: version: 8.7.1 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'pnpm' - name: Get pnpm store directory shell: bash diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6cd8c96..c1717d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,19 +16,22 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v2 + - uses: pnpm/action-setup@v4 + name: Install pnpm with: - node-version: 16 + version: 8.7.1 + run_install: false - - uses: pnpm/action-setup@v2.2.2 + - name: Install Node.js + uses: actions/setup-node@v4 with: - version: 8.7.1 + node-version: 16 + cache: 'pnpm' - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install - name: Build docs run: pnpm run docs diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a013c2a..eb9a168 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -20,14 +20,20 @@ jobs: packages: write # allow GITHUB_TOKEN to publish packages id-token: write steps: - - uses: actions/checkout@v3 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: 16 - - uses: pnpm/action-setup@v2.2.2 + - name: Checkout + uses: actions/checkout@v4 + + - name: Install pnpm + uses: pnpm/action-setup@v4 with: version: 8.7.1 + run_install: false + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 16 + cache: 'pnpm' - name: Get pnpm store directory shell: bash