From bff3364de99ab4a023ae8764df73b1479587e48b Mon Sep 17 00:00:00 2001 From: figorr <77553975+figorr@users.noreply.github.com> Date: Sat, 22 Jun 2024 00:45:09 +0200 Subject: [PATCH] Update release.yml update --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1317e7f..8daea97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,10 +4,16 @@ on: release: types: [published] +env: + NODE_VERSION: 20 # Define la versión de Node.js a utilizar + jobs: build: name: Build runs-on: ubuntu-latest + env: + NODE_VERSION: ${{ env.NODE_VERSION }} # Propaga la variable de entorno al trabajo + steps: - name: Checkout repository uses: actions/checkout@v2 @@ -23,7 +29,7 @@ jobs: # Install dependencies and build - name: Install dependencies and build run: | - cd $GITHUB_WORKSPACE # Cambia al directorio raíz del repositorio + cd $GITHUB_WORKSPACE npm install npm run build ls -R dist