storybook-eol / storybook-deployer

Deploy your storybook as a static site
MIT License
892 stars 71 forks source link

Error on executing git config --get remote.upstream.url #126

Open yasin-amadmia-mck opened 2 years ago

yasin-amadmia-mck commented 2 years ago

Describe the bug

Failing to run deploy-storybook on GitHub Actions

When trying to run

npm run deploy-storybook -- --ci --host-token-env-variable=GITHUB_TOKEN

we get this error. Looks like issue with getting remote.upstream.url. This is part of GitHub Actions where we have a step to checkout the repo via actions/checkout@v3 and then this deploy-storybook step

=> Getting the git remote URL
   executing: git config --get remote.upstream.url
/__w/PROJECT/PROJECT/node_modules/@storybook/storybook-deployer/src/utils.js:[14](https://github.com/ORG/REPO/runs/7777101279?check_suite_focus=true#step:7:15)
  throw new Error(
  ^

Error: Exec code(1) on executing: git config --get remote.upstream.url

ALSO TRIED npm run deploy-storybook -- --remote=upstream