dev-cli icon indicating copy to clipboard operation
dev-cli copied to clipboard

npm run prepack: AWS credentials

Open pharindoko opened this issue 6 years ago • 1 comments

Hi,

I`m using oclif together with lerna (multirepo). I use "lerna publish" or "lerna version" and it builds the packages and does all steps for the repositories as required. When I release a package to npm manually and locally from my computer (having aws credentials set) it works.

When I use travis to publish the packages to npm in the release step the command "npm run prepack" will be executed for the oclif / cli directory and fails.

Error:

rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme Error Plugin: json-serverless: ENOENT: no such file or directory, open '/home/travis/.aws/credentials'

So this step already requires that I have .aws/credentials set. I think this is wrong. the prepack step should not already require aws credentials. Only if I want to publish the package to s3 right ?

br,

flo

pharindoko avatar Dec 30 '19 15:12 pharindoko

Hello, does anyone have a clue why I need this ? or did I missunderstand the concept ?

br,

flo

pharindoko avatar Feb 15 '20 14:02 pharindoko