Hey guys, I am trying to publish the contracts to ...
# pact-broker
s
Hey guys, I am trying to publish the contracts to pact-broker in the consumer repo. I have added PACT_BROKER_BASE_URL and PACT_BROKER_TOKEN in the.env file, but when I run the command on the terminal to publish it, it throws an error.
Copy code
pact-broker publish --consumer-app-version 1.0.0 --broker-base-url=${PACT_BROKER_BASE_URL} --broker-token=${PACT_BROKER_TOKEN} pacts/webapp-pact-js-v3-engine-service.json
m
The CLI is not aware of any
.env
file. You will need to properly export the shell variables
do our docs somewhere indicate that it does support dotenv?
s
no, sorry i missed it... thanks
👍 1
b
@Sneha Singh you may have seen the .env file used in the workshops. That works because the makefile is loading the .env file at the start of the task, but the pact CLI doesn’t know about that.
👍 1