You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using aws's codeartifact to store packages and CODEARTIFACT_AUTH_TOKEN approach to set an auth token. Thus I have to write export CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token ...) each time token expires. I automated this process by adding bash script (lets name it dev.sh) which contains export CODEARTIFACT_AUTH_TOKEN ... in it. Then in package.json I added
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using aws's codeartifact to store packages and
CODEARTIFACT_AUTH_TOKEN
approach to set an auth token. Thus I have to writeexport CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token ...)
each time token expires. I automated this process by adding bash script (lets name itdev.sh
) which containsexport CODEARTIFACT_AUTH_TOKEN ...
in it. Then in package.json I addedProblem is when i run
yarn start
it throws an error of incorrectCODEARTIFACT_AUTH_TOKEN
Here is
.npmrc
Here is
dev.sh
Is there a way to tell yarn do not check for
CODEARTIFACT_AUTH_TOKEN
for some scripts?Beta Was this translation helpful? Give feedback.
All reactions