From 23cdf01c51cddb619fef7020f13daf323afa3c91 Mon Sep 17 00:00:00 2001 From: Edouard Date: Tue, 10 Dec 2024 22:52:37 +0100 Subject: [PATCH] fixes --- .github/workflows/deploy.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1073fac..69b564a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,12 +13,20 @@ jobs: - name: Checkout Code uses: actions/checkout@v3 - - name: Install Dependencies + - name: Set up Node.js with NVM run: | + export NVM_DIR="$HOME/.nvm" + mkdir -p "$NVM_DIR" curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash - source ~/.bashrc - nvm install --lts - npm ci + echo 'export NVM_DIR="$HOME/.nvm"' >> $GITHUB_ENV + echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $GITHUB_ENV + echo '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' >> $GITHUB_ENV + + - name: Install Dependencies + run: | + source $HOME/.nvm/nvm.sh + nvm use 22.12.0 + npm install - name: Build Next.js App run: npm run build