Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

npm run prepack: AWS credentials #128

Open
pharindoko opened this issue Dec 30, 2019 · 1 comment
Open

npm run prepack: AWS credentials #128

pharindoko opened this issue Dec 30, 2019 · 1 comment

Comments

@pharindoko
Copy link

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
Copy link
Author

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

br,

flo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant