I have this react app, I need to deploy into a google cloud storage thru google cloud build, I'm trying to do it adding a cloudbuild.yaml and add some steps to run the npm
This is what I have:
steps:
- name: bash
script: |
npm install --force
- name: bash
script: |
npm run build
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
["storage", "cp", "/dist/*", "gs://bucket"]
timeout: 1200s
options:
logging: CLOUD_LOGGING_ONLY
but cloud build show me an error:
Step #0: script: line 2: npm: not found