Skip to content

Update with Devkit to ensure webpack buils properly #38

Update with Devkit to ensure webpack buils properly

Update with Devkit to ensure webpack buils properly #38

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ main ] # Simplified syntax for single-item arrays
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
steps:
- name: Checkout code
uses: actions/checkout@v3 # Check out the latest code from the repository
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm' # This option automatically caches npm dependencies and replaces the separate cache step
- name: Install dependencies
run: npm install # Install all project dependencies
- name: Install Angular CLI globally
run: npm install -g @angular/cli
- name: Build the project with Angular CLI
run: ng build --configuration development
# - name: Build the project with Webpack
# run: npx webpack --mode development # Run webpack using npx to bundle the application
# Moving Forward: Add steps for additional commands, such as testing or deployment
# Angular projects (versions >= 9), you don't need to create a manual webpack.config.js