I need to deploy a Node.js application to Google App Engine. The application depends on node modules from a private repository. Therefore I'm creating a .npmrc file in the working directory in a first step. "npm install" and "npm run test" work fine there.
The .npmrc file also needs to be uploaded to google cloud storage, which unfortunately does not seem to be the case.
- printf "//registry.npmjs.org/:_authToken=%s\n" "$NPM_TOKEN" >> .npmrc
- npm install
- npm run test
- pipe: atlassian/google-app-engine-deploy:0.2.1
I'm always getting the following error from Google:
Step #1: npm ERR! 404 '@firstname.lastname@example.org' is not in the npm registry.
And this happens because the .npmrc file is not available in the current cloud storage bucket.
How can I make sure the .npmrc created in step "NPM" will be uploaded, too?
Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events