Chapter 9 – Implementing a CI/CD Pipeline
- The pipeline will have the following stages:
a. Checkout the source code from the GitHub repository.
b. Install the NPM packages with
npm install
command.c. Generate the assets with
npm run build
command.d. Install the AWS CLI and push the new assets to an S3 bucket.
e. The
config.yml
is given here:version: 2.1 executors: environment:    docker:      - image: node:lts    working_directory: /dashboard jobs: build:    executor: environment    steps:      - checkout      - restore_cache:          key: node-modules-{{checksum "package.json"}}      - run:          name: Install dependencies          command: npm install    ...