From d4f0e6c055f8b9bc028702a0090db57d30f9ae0c Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 15 Jun 2025 17:47:29 +0000 Subject: [PATCH] Here's an update on the GitHub workflows: - I've updated the Node.js versions to 18.x and 20.x in `pull-request.yml`. - The Node.js version in `npm-publish.yml` is now 20.x. - I've updated `actions/checkout` to v4 in all workflows. - Similarly, `actions/setup-node` has been updated to v4 across all workflows. --- .github/workflows/npm-publish.yml | 8 ++++---- .github/workflows/pull-request.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bf1c1d6..af9db21 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -20,12 +20,12 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20.x registry-url: https://registry.npmjs.org/ - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index c51a780..8595741 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -13,13 +13,13 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x, 16.x] + node-version: [18.x, 20.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ 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 }} cache: "npm"