chore(workflows): move to use node-version-file

This commit is contained in:
Ismo Vuorinen
2024-09-25 15:04:02 +03:00
parent 7f978e79b4
commit f010f804ea
2 changed files with 2 additions and 12 deletions

View File

@@ -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

View File

@@ -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