Deployment commands being run multiple times

deployment
nodejs
artifacts

#1

I’m running my builds to generate deployment targets, however, they seem to be run multiple times. The output of one of the commands is

npm run build-number

> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js


> app@1.6.0 build-number /home/ubuntu/APP_NAME/app
> node bin/build-number.js

Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json
Wrote buildNumber 6760 /home/ubuntu/APP_NAME/app/package.json

The configuration is

deployment:
  production:
    branch: release_something
    commands:
      - npm run build-number

It does flow onto the next command, however, I can’t figure out why it is being run multiple times - or is it just the output that is incorrect?

Cheers,
-Tak


#2