Skip to content

Commit 7b106d4

Browse files
committed
Install LFS 3.6.1, making it executable and pull files before running yarn
1 parent 03373b2 commit 7b106d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

amplify.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ frontend:
77
- echo "Using Node.js version $NODE_VERSION"
88
- nvm install "$NODE_VERSION"
99
- node -v
10+
# Set the NEXTAUTH_URL to the preview URL if the branch is not main or staging
11+
# The preview URL is in the format https://<branch-name>.<app-id>.amplifyapp.com
1012
- |
1113
if [[ "${AWS_BRANCH}" != "main" && "${AWS_BRANCH}" != "staging" ]]; then
1214
SUBDOMAIN="$(echo $AWS_BRANCH | sed 's/[^a-zA-Z0-9-]/-/g')"
@@ -16,11 +18,23 @@ frontend:
1618
fi
1719
- echo "NEXTAUTH_URL=$NEXTAUTH_URL" >> .env
1820
- corepack enable
21+
# Download git-lfs and make it executable
22+
- curl -L -o git-lfs.tar.gz https://github.com/git-lfs/git-lfs/releases/download/v3.6.1/git-lfs-linux-amd64-v3.6.1.tar.gz
23+
- mkdir -p ./bin
24+
- tar -xvzf git-lfs.tar.gz
25+
- mv git-lfs-3.6.1/git-lfs ./bin/
26+
- chmod +x ./bin/git-lfs
27+
# Install git-lfs and pull down the files
28+
- export PATH=$PATH:$(pwd)/bin && git-lfs install
29+
- export PATH=$PATH:$(pwd)/bin && git-lfs pull
30+
# install dependencies
1931
- yarn config set nodeLinker node-modules
2032
- yarn -v
2133
- yarn
2234
- yarn disable-telemetry
35+
# Build graphql files
2336
- yarn gql
37+
# Extract translations
2438
- timeout 1m yarn onesky:download || echo "yarn onesky:download timed out after 1 minute or failed with an error"
2539
build:
2640
commands:

0 commit comments

Comments
 (0)