From f450633124164ef4838484051d25ef6bd808d959 Mon Sep 17 00:00:00 2001 From: Eric Smekens Date: Wed, 10 Jul 2024 18:35:40 +0200 Subject: [PATCH] build: update GH Action versions (#264) (#265) - test on node 16, 18, 20 - update actions/* version numbers - publish from node 20 Co-authored-by: Shelly <17912877+6utt3rfly@users.noreply.github.com> --- .github/workflows/node.js.yml | 10 +++++----- .github/workflows/npm-publish.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 2f3630e..f09a9b8 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,22 +14,22 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache pnpm modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v4 with: version: ^7 run_install: true diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 8bca4c7..bf5c4e8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,21 +15,21 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [20.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache pnpm modules - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.pnpm-store key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.0.1 + - uses: pnpm/action-setup@v4 with: version: 6.0.2 run_install: true