Created
November 10, 2021 17:21
-
-
Save bensewell/60b9aafa23c156e98735b66b702aaf53 to your computer and use it in GitHub Desktop.
Amplify buildspec with fix for https://github.com/aws-amplify/amplify-cli/issues/8392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
backend: | |
phases: | |
build: | |
commands: | |
- |- | |
export X=`npm root -g` | |
cd $X/@aws-amplify/cli/node_modules/amplify-provider-awscloudformation && npm install ajv@^6.12.3 | |
- amplifyPush --simple | |
frontend: | |
phases: | |
preBuild: | |
commands: | |
- nvm install 14 | |
- npm ci | |
- npm install --silent --global expo-cli | |
- |- | |
if [ -f yarn.lock ]; then | |
yarn | |
elif [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]; then | |
npm ci | |
else | |
npm install | |
fi | |
build: | |
commands: | |
- "expo build:web" | |
artifacts: | |
baseDirectory: web-build | |
files: | |
- "**/*" | |
cache: | |
paths: | |
- node_modules/**/* | |
- $(npm root --global)/**/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment