From f010f804ea48d4799451ccd9594b7c47b7e8ceab Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 25 Sep 2024 15:04:02 +0300 Subject: [PATCH] chore(workflows): move to use node-version-file --- .github/workflows/build-and-deploy.yml | 7 +------ .github/workflows/pr-build.yml | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 67a86ee..efdb1db 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -30,17 +30,12 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - strategy: - matrix: - node-version: [22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - run: npm ci - run: npm run build --if-present diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 156ef8f..d17a8b8 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -13,17 +13,12 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version-file: '.nvmrc' cache: 'npm' - run: npm ci - run: npm run build --if-present