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')