From 024d8aad77f5b92ec1573ce95163bfce8f468c19 Mon Sep 17 00:00:00 2001 From: xBoyMinemc <86919167+xBoyMinemc@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:39:45 +0800 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 470401c..3ce0f7c 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,9 +28,14 @@ jobs: echo "EOF" >> $GITHUB_ENV - name: Set up Node.js + if: startsWith(env.latest_commit_message, 'v') uses: actions/setup-node@v3 with: node-version: '22' + + - name: npm run build + if: startsWith(env.latest_commit_message, 'v') + run: npm i - name: npm run build if: startsWith(env.latest_commit_message, 'v')