mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 08:46:48 +08:00
Fix gulp pipeline installation and error detection (#8841)
* Fine-tuning the compile-node job in the compile workflow
* Temporarily disabling the compile job
* Splitting up steps in the compile-node job of the compile workflow
* Revert "Temporarily disabling the compile job"
This reverts commit c130566943.
This commit is contained in:
18
.github/workflows/compile.yml
vendored
18
.github/workflows/compile.yml
vendored
@@ -71,22 +71,28 @@ jobs:
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v4.0.2
|
||||
with:
|
||||
node-version: '7'
|
||||
node-version: 7
|
||||
|
||||
- name: Setup NPM Packages
|
||||
- name: Install Gulp Globally
|
||||
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"
|
||||
|
||||
- name: Setup NPM Packages
|
||||
working-directory: ./src
|
||||
shell: cmd
|
||||
run: npm install --loglevel warn
|
||||
|
||||
- name: Rebuild Client-side Assets
|
||||
working-directory: ./src
|
||||
run: |
|
||||
gulp rebuild
|
||||
shell: cmd
|
||||
run: gulp rebuild
|
||||
|
||||
- name: Check Client-side Assets
|
||||
working-directory: ./src
|
||||
run: |
|
||||
git add . # To make line ending changes "disappear".
|
||||
$gitStatus = (git status --porcelain)
|
||||
if ($gitStatus)
|
||||
|
||||
Reference in New Issue
Block a user