Skip to content

Commit 40ae427

Browse files
Dale KunceDale Kunce
authored andcommitted
Update GitHub Actions to use npm scripts instead of direct gulp commands
- Replace 'gulp prod' with 'npm run build' in all workflows - Replace 'gulp serve --build-only' with 'npm run build:dev' - Remove unnecessary 'gulp-cli' global installation - Align CI/CD with README documentation and modern npm script patterns - Ensures GitHub Actions follow the same build process as local development Fixes build failures by using the documented npm scripts approach.
1 parent 909023b commit 40ae427

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,11 @@ jobs:
4242
- name: Install Node.js dependencies
4343
run: npm ci
4444

45-
- name: Install Gulp CLI
46-
run: npm install -g gulp-cli
47-
4845
- name: Lint JavaScript
4946
run: npm run lint
5047

5148
- name: Build site
52-
run: gulp prod
49+
run: npm run build
5350
env:
5451
JEKYLL_ENV: production
5552

.github/workflows/manual-deploy.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,21 @@ jobs:
3939
cache: 'npm'
4040

4141
- name: Install dependencies
42-
run: |
43-
npm ci
44-
npm install -g gulp-cli
42+
run: npm ci
4543

4644
- name: Run tests
4745
if: ${{ !inputs.skip_tests }}
4846
run: npm test
4947

5048
- name: Build for staging
5149
if: ${{ inputs.environment == 'staging' }}
52-
run: gulp serve --build-only
50+
run: npm run build:dev
5351
env:
5452
JEKYLL_ENV: development
5553

5654
- name: Build for production
5755
if: ${{ inputs.environment == 'production' }}
58-
run: gulp prod
56+
run: npm run build
5957
env:
6058
JEKYLL_ENV: production
6159

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
- name: Install Node.js dependencies
2828
run: npm ci
2929

30-
- name: Install Gulp CLI
31-
run: npm install -g gulp-cli
32-
3330
- name: Lint JavaScript
3431
run: npm run lint
3532

3633
- name: Test build process
37-
run: gulp prod
34+
run: npm run build
3835
env:
3936
JEKYLL_ENV: production
4037

0 commit comments

Comments
 (0)