In old version of circleCI, I used to do like this
machine: node: version: 14.13.1 test: override: - npm run test deployment: prod