From 0d742d40e425c3d6a6f11d6c10679568ebef8699 Mon Sep 17 00:00:00 2001 From: Viktor Sokolov Date: Mon, 5 Feb 2024 21:01:33 +0200 Subject: [PATCH] chore: update release action to get node version from .nvmrc file --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e5b6484..f7a3eee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,10 +22,14 @@ jobs: runs-on: ubuntu-latest steps: + - name: Read .nvmrc + run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) + id: nvm + - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18.x' + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - name: Install dependencies run: npm install