Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Create npm-gulp.yml
This GitHub Actions workflow automates the process of installing Node.js dependencies via npm, and running build or development tasks using Gulp.js. It helps streamline continuous integration (CI) for JavaScript projects that use Gulp as a task runner.

πŸ”§ Key Features:
βœ… Automatically triggers on every push or pull request to the main (or specified) branch.

🧰 Sets up the correct Node.js version using actions/setup-node.

πŸ“¦ Installs project dependencies with npm ci to ensure consistent installs based on the package-lock.json.

πŸš€ Executes gulp tasks to automate builds, testing, or other custom dev workflows.

πŸ“„ Ensures logs and build status are visible within GitHub Actions for easy debugging and monitoring.

πŸ“ File Location:
.github/workflows/npm-gulp.yml

πŸ›  Example Use Cases:
Frontend web apps that compile SCSS, minify JS/CSS, or bundle files using Gulp.

Automated deployment workflows that rely on asset pipelines.

CI pipelines for JavaScript tools and libraries built using Gulp.
  • Loading branch information
reagansfwamba authored Apr 22, 2025
commit b8b4af3dc322b1335a764344a43a2a1ec052094a
28 changes: 28 additions & 0 deletions .github/workflows/npm-gulp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: NodeJS with Gulp

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
gulp