From 63957471bce0c188911e100801c772013ce53ecb Mon Sep 17 00:00:00 2001 From: BigDealCompany Date: Fri, 26 Jan 2024 19:49:59 +0100 Subject: [PATCH] worklow update --- .github/workflows/livedeploy_bsc.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/livedeploy_bsc.yaml b/.github/workflows/livedeploy_bsc.yaml index 706043c7..347ca210 100644 --- a/.github/workflows/livedeploy_bsc.yaml +++ b/.github/workflows/livedeploy_bsc.yaml @@ -30,12 +30,13 @@ jobs: ref: 'main-bsc' path: ${{env.BSC_WORK_PATH}} - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node }} - cache: 'npm' - cache-dependency-path: '**/package-lock.json' + - name: Setup Node.js with nvm + run: | + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + nvm install 16 + nvm use 16 - name: Install dependencies run: |