I'm setting up cloud build trigger, how to set node version properly? this is what I get:
Already have image (with digest): gcr.io/cloud-builders/yarn yarn install v1.9.4 info No lockfile found. warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/5] Validating package.json... error functions@: The engine "node" is incompatible with this module. Expected version "10". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
package.json:
"engines": {
"node": "10"
}
.yaml is:
steps:
- name: 'gcr.io/cloud-builders/yarn'
args: ['install']
dir: 'functions/autodeploy'
- name: 'gcr.io/cloud-builders/npm'
args: ['test']
dir: 'functions/autodeploy'
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'someName', '--trigger-topic',
'some.topic.name', '--runtime', 'nodejs10']
dir: 'functions/autodeploy'