From 9f6e614b57480c61c9ea6ccee76d43d354f6b700 Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Sat, 30 Mar 2024 13:57:30 +0100 Subject: [PATCH] fix: job handling --- .github/workflows/main.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 30e9297..815e23b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,7 @@ jobs: release: name: Release + needs: build if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: @@ -59,13 +60,17 @@ jobs: with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 + - name: Read .nvmrc + run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT + id: nvm + + - name: Setup Node + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: ${{ steps.nvm.outputs.NODE_VERSION }} - name: Install - run: npm install + run: npm ci --ignore-scripts - name: Release env: