Closed morewings closed 2 years ago
@morewings Does the command work if you comment out the addon?
From seeing the stack trace, I think the error just complains about the absence of the build-storybook
script file. Missing yarn install
in a build pipeline and Adding a --production
flag to the install command often causes this error.
@pocka It works without this plugin (believe me, I've spent a lot of time fixing our pipeline). Also works with this plugin locally on macOS. I think it's something about Docker image specifics.
@pocka here is our build file. node_modules
folder is created at setup-environment
step.
image: node:14
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .yarn/
- .npmrc
- node_modules/
- static/
variables:
GIT_DEPTH: "1000"
stages:
- setup
- build
- test library
- deploy
- release
# Set up registry to publish and get dependencies
setup-environment:
stage: setup
script:
- rm -rf .npmrc
- yarn install --cache-folder .yarn
only:
- merge_requests
- master
- alpha
- beta
# Runs after merge to build a Storybook assets. Needed only for AWS deploy
build-storybook:
stage: build
artifacts:
paths:
- static/
script:
- yarn run s:build
only:
- master
- merge_requests
Cannot reproduce with node:14
Docker image. (examples/basic
directory at d788ffdf405390cd0c704c1a9790fa35dfb0d1d8)
Please provide a repro repo.
Description of the bug
I tried to use this plugin with GitLab CI with official
node:14
Docker image (https://hub.docker.com/_/node/) Build breaks with the following errorHow to reproduce the bug?
To reproduce, run this configuration inside
node:14
dockerExpected behaviour
It should build.
Optimization level
1
Addon version
1.0.1
Storybook version
6.3.8
Additional contexts
No response