question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when run yarn deploy-storybook --ci in CircleCi

See original GitHub issue

Hey 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: circleCi

Can someone help me?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:5

github_iconTop GitHub Comments

2reactions
tysonnerocommented, Jan 27, 2020

@rafaelmusetti Did you figure this out? I’m getting the same error running this in Github Actions

1reaction
rizkycommented, Sep 23, 2019

try to run npm run build-storybook. I think it will give you better error message

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found