From 8aa743e1feed16f4e716205210041ffe41d816cf Mon Sep 17 00:00:00 2001 From: Federico Gandellini Date: Sun, 9 Jun 2024 13:59:35 +0200 Subject: [PATCH] set node version for deploy --- .github/workflows/deploy.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e44d06f..553f1e4 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -33,6 +33,15 @@ jobs: needs: test runs-on: ubuntu-latest steps: + - name: Read Node.js version from .nvmrc + id: nvmrc + uses: browniebroke/read-nvmrc-action@v1 + + - name: Set Node.js version + uses: actions/setup-node@v1 + with: + node-version: '${{ steps.nvmrc.outputs.node_version }}' + - name: Deploy to GitHub Pages uses: bitovi/github-actions-react-to-github-pages@v1.2.4 with: