You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
$ storybook-to-aws-s3 --ci --bucket-path=<my-bucket> --s3-sync-options='--delete'
=> Building storybook for: ui
executing: npm run build-storybook -- -o out8987
=> Deploying storybook
executing: aws --profile default s3 sync out8987 s3://<my-bucket>/ --delete
/github/workspace/node_modules/@storybook/storybook-deployer/src/utils.js:14
throw new Error(
^
Error: Exec code(127) on executing: aws --profile default s3 sync out8987 s3://<my-bucket>/ --delete
/bin/sh: aws: not found
at Object.exec (/github/workspace/node_modules/@storybook/storybook-deployer/src/utils.js:14:9)
at Object.<anonymous> (/github/workspace/node_modules/@storybook/storybook-deployer/bin/storybook_to_aws_s3:37:14)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
I've checked that aws is installed and within the PATH of the runner:
which aws = /usr/local/bin/aws
echo $PATH = /home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/opt/pipx_bin:/usr/share/rust/.cargo/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Expected behavior
I expected the action to be able to find the AWS binary.
Has anyone been able to run this within a github action? I tried to run npm run (even though the package was setup with yarn) and it gave me some really shady errors as well.
Any help/guidance would be much appreciated :)
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi there, I'm trying to automate the deploy of my storybook to S3, and, while it works locally, it's failing in the Github Action.
Steps to reproduce the behavior
My current command for deploy-storybook:
This is the my current action:
It fails with the following:
I've checked that aws is installed and within the
PATH
of the runner:Expected behavior
I expected the action to be able to find the AWS binary.
Has anyone been able to run this within a github action? I tried to run npm run (even though the package was setup with yarn) and it gave me some really shady errors as well.
Any help/guidance would be much appreciated :)
The text was updated successfully, but these errors were encountered: