I have the following yml file
version: 2.1
jobs:
build:
docker:
- image: circleci/node:13.12.0
working_directory: ~/repo
steps:
- checkout
- run:
name: update npm
command: ‘sudo npm install -g npm@latest’
- restore_cache:
key: dependency-cache-{{ checksum “package.json” }}
- run:
name: Install node modules
command: npm install
- run:
name: Build
command: npm run build
- save_cache:
key: dependency-cache-{{ checksum “package.json” }}
paths:
- ./node_modules
- run:
name: Deploy Master to Heroku
command: |
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git master:main -f
This pipeline is set up to be triggered by changes in Contentful CMS, however, because there are no code changes, the build stops and says “Everything is up to date”. Is there someway where I can forcibly run a Heroku build even if there is no code changes?