mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 08:46:48 +08:00
Compile workflow: Adding steps to validate that the client-side assets are up-to-date
This commit is contained in:
15
.github/workflows/compile.yml
vendored
15
.github/workflows/compile.yml
vendored
@@ -20,6 +20,21 @@ jobs:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4.1.1
|
||||
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v4.0.2
|
||||
with:
|
||||
node-version: '7'
|
||||
|
||||
- name: Rebuild client-side assets
|
||||
run: |
|
||||
npm install
|
||||
npm run rebuild
|
||||
|
||||
if (git status)
|
||||
{
|
||||
throw 'Client-side assets are not up-to-date. Please run "npm run rebuild" and commit the changes.'
|
||||
}
|
||||
|
||||
- name: Restore NuGet packages
|
||||
run: nuget restore src/Orchard.sln
|
||||
|
||||
|
||||
Reference in New Issue
Block a user