diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 7f8bbcb..2833353 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -13,16 +13,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18] + node-version: [20] steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - - name: Setup pnpm - uses: pnpm/action-setup@v2 + - name: Install Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - version: 9 + node-version: ${{ matrix.node-version }} + cache: "pnpm" + + - name: Install pnpm + uses: pnpm/action-setup@v4 - run: pnpm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 945c434..e83a5be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,27 +14,22 @@ jobs: permissions: contents: read id-token: write # Needed for https://docs.npmjs.com/generating-provenance-statements - strategy: - matrix: - node-version: [18] needs: [build-test] # Require standard CI steps to pass before publishing steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Set up .npmrc file to publish to npm. This also allows NODE_AUTH_TOKEN # to work below. - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: "18.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - - name: Setup pnpm - uses: pnpm/action-setup@v2 - with: - version: 9 + - name: Install pnpm + uses: pnpm/action-setup@v4 - run: pnpm install