From 8ffb6cd1c3d33dfb8af399ef31aba8eff7973b6a Mon Sep 17 00:00:00 2001 From: Dany Castillo <31006608+dcastil@users.noreply.github.com> Date: Sat, 19 Aug 2023 13:23:14 +0200 Subject: [PATCH] specify usage of Node.js 18.17.1 everywhere whre dependencies are installed rollup-plugin-dts has a super strict requirement for the Node version --- .github/workflows/codeql-analysis.yml | 7 +++++-- .github/workflows/npm-publish-dev.yml | 2 +- .github/workflows/npm-publish.yml | 2 +- .github/workflows/size.yml | 13 +++++++++++++ .github/workflows/test.yml | 2 +- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index aeb2eb91..f6903de4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -16,8 +16,11 @@ jobs: security-events: write steps: - - name: Checkout repository - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18.17.1 - name: Use node_modules cache uses: actions/cache@v3 with: diff --git a/.github/workflows/npm-publish-dev.yml b/.github/workflows/npm-publish-dev.yml index e57e3d0e..937c919b 100644 --- a/.github/workflows/npm-publish-dev.yml +++ b/.github/workflows/npm-publish-dev.yml @@ -14,7 +14,7 @@ jobs: - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 18.17.1 # More info: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry registry-url: 'https://registry.npmjs.org' - name: Use node_modules cache diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ce0cb885..a0a6b04c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -14,7 +14,7 @@ jobs: - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 18.17.1 - name: Use node_modules cache uses: actions/cache@v3 with: diff --git a/.github/workflows/size.yml b/.github/workflows/size.yml index 8f1c28ad..c78aa0d2 100644 --- a/.github/workflows/size.yml +++ b/.github/workflows/size.yml @@ -11,6 +11,19 @@ jobs: CI_JOB_NUMBER: 1 steps: - uses: actions/checkout@v3 + - name: Use Node.js 18 + uses: actions/setup-node@v3 + with: + node-version: 18.17.1 + - name: Use node_modules cache + uses: actions/cache@v3 + with: + path: node_modules + key: yarn-node-18-lock-${{ hashFiles('yarn.lock') }} + restore-keys: | + yarn-node-18-lock- + - run: yarn install --frozen-lockfile - uses: andresz1/size-limit-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} + skip_step: install diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b28c3b95..710fc5d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: - name: Use Node.js 18 uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 18.17.1 - name: Use node_modules cache uses: actions/cache@v3 with: