Fine-tuning the compile-node job in the compile workflow

This commit is contained in:
Benedek Farkas
2025-09-18 22:02:29 +02:00
parent b14c29503b
commit 4f9ae102db

View File

@@ -71,22 +71,25 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v4.0.2
with:
node-version: '7'
node-version: 7
- name: Setup NPM Packages
working-directory: ./src
run: |
npm install --loglevel warn
# Install gulp globally to be able to run the rebuild task, using the same version as in the project.
$gulpVersion = (Get-Content Package.json -Raw | ConvertFrom-Json).devDependencies.gulp
Start-Process npm -NoNewWindow -Wait -ArgumentList "install gulp@$gulpVersion -g --loglevel warn"
npm install --loglevel warn
- name: Rebuild Client-side Assets
shell: cmd
working-directory: ./src
run: gulp rebuild
- name: Check Client-side Assets
working-directory: ./src
run: |
gulp rebuild
git add . # To make line ending changes "disappear".
$gitStatus = (git status --porcelain)
if ($gitStatus)