Error when run yarn deploy-storybook --ci in CircleCi
See original GitHub issueHey guys,
I’m having an error while trying to deploy with CircleCi.
I don’t know what’s happening, because the problem began to appear now, and before that, it was already working.
my config:
version: 2 # use CircleCI 2.0
jobs:
build:
docker:
- image: circleci/node:9-stretch
environment:
TZ: "/usr/share/zoneinfo/America/Sao_Paulo"
steps:
- checkout # special step to check out source code to working directory
- run: sudo apt-get update
- run: sudo apt-get install apt-transport-https
- run: curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- run: echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- run: sudo apt-get update && sudo apt-get install yarn && yarn
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Run React Tests
command: yarn jest --no-cache --runInBand
deploy:
docker:
- image: circleci/node:12.2.0
environment:
GH_TOKEN: "MY_GH_TOKEN"
NPM_TOKEN: "MY_NPM_TOKEN"
steps:
- checkout
- run: sudo apt-get update
- run: sudo apt-get install apt-transport-https
- run: curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- run: echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- run: sudo apt-get update && sudo apt-get install yarn && yarn
- run:
name: Deploy Storybook
command: yarn deploy-storybook --ci
release:
docker:
- image: circleci/node:9-stretch
environment:
GH_TOKEN: "MY_GH_TOKEN"
NPM_TOKEN: "MY_NPM_TOKEN"
steps:
- checkout
- run: sudo apt-get update
- run: sudo apt-get install apt-transport-https
- run: curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- run: echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- run: sudo apt-get update && sudo apt-get install yarn && yarn
# Run optional required steps before releasing
# - run: npm run build-script
- run: yarn semantic-release
workflows:
version: 2
test_and_release:
jobs:
- build
- deploy:
requires:
- build
- release:
requires:
- build
This is the error:
Can someone help me?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
Build error (version error ) when I deployed to circle-ci
This problem was I forgot to uninstall yarn.lock just uninstall the package-lock.json. The solving way. 1.delete package-lock.json and yarn.
Read more >Yarn package error - Build Environment - CircleCI Discuss
The CI will say couldn't find the file, continue to run, etc. Problem seemed to go away other than the failure on not...
Read more >Deploy - Storybook Tutorials - JS.ORG
To deploy Storybook, we first need to export it as a static web app. This functionality is already built-in to Storybook and pre-configured....
Read more >Automate Chromatic with CircleCI • Chromatic docs
Have build-storybook npm script in the subproject's package.json file OR explicitly name the script using the buildScriptName parameter and make sure the script ......
Read more >Ali's Blog Posts - Littledata Blog
Have you ever shipped a bug to the production environment, ... you don't need to run the yarn install command in Chromatic deployment, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rafaelmusetti Did you figure this out? I’m getting the same error running this in Github Actions
try to run
npm run build-storybook
. I think it will give you better error message