image: atlassian/default-image:2
pipelines:
branches:
master:
- step:
name: Packages
script:
- npm install
- npm install -g expo-cli
- npx expo export:web
artifacts:
- web-build/**
- step:
name: Deploy to S3
deployment: production
script:
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'us-east-1'
S3_BUCKET: 'book3.app'
LOCAL_PATH: 'web-build'
ACL: 'public-read'
here is my pipeline.
But
npx expo export:web
fails with:
+ npx expo export:web
(node:19536) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Unexpected token {
(node:19536) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:19536) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): SyntaxError: Unexpected token .
It works fine on my local machine.
Did you have any ideas what can be wrong?