Browse Source

Read Node.js version from .nvmrc in Build code GitHub action

pull/8460/head
Thomas Kaul 3 days ago
parent
commit
aa9d7347f6
  1. 8
      .github/workflows/build-code.yml

8
.github/workflows/build-code.yml

@ -10,20 +10,16 @@ permissions:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 22.23.5
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js ${{ matrix.node_version }} - name: Use Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node_version }} node-version-file: '.nvmrc'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies

Loading…
Cancel
Save