Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ for i in {1..4}; do

if [ "$NO_LOCKFILE" = "true" ]; then
echo "[LOG]: Ignoring yarn.lock file"
yarn install --no-lockfile --network-timeout 60000
YARN_HTTP_TIMEOUT=60000 yarn install --immutable
else
yarn install --network-timeout 60000
YARN_HTTP_TIMEOUT=60000 yarn install
fi

# Check return value and exit early if successful
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/publish-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable
- name: Install packages
uses: ./.github/actions/install-with-retries
with:
Expand All @@ -105,8 +106,8 @@ jobs:
pull-requests: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: "main"
HEAD_BRANCH: "hotfix"
BASE_BRANCH: 'main'
HEAD_BRANCH: 'hotfix'
steps:
- name: Checkout repo
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.3 https://github.com/actions/checkout/commit/cd7d8d697e10461458bc61a30d094dc601a8b017
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable
- name: Install packages
uses: ./.github/actions/install-with-retries
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-build-system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Add Amplify CLI
run: yarn global add @aws-amplify/cli
run: npm install -g @aws-amplify/cli
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
with:
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/reusable-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable

- name: Restore cypress runner Cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
Expand Down Expand Up @@ -199,7 +200,7 @@ jobs:
run: yarn test-utils build

- name: Add Amplify CLI
run: yarn global add @aws-amplify/cli
run: npm install -g @aws-amplify/cli

- name: Configure auth credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 https://github.com/aws-actions/configure-aws-credentials/commit/e3dd6a429d7300a6a4c196c26e071d42e0343502
Expand Down Expand Up @@ -400,9 +401,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable

- name: Restore CocoaPods cache
id: restore-cocoapods-cache
Expand Down Expand Up @@ -445,7 +447,7 @@ jobs:
yarn react-native-example ios:pod-install

- name: Add Amplify CLI
run: yarn global add @aws-amplify/cli
run: npm install -g @aws-amplify/cli

- name: Get CLI versions
id: cli-version
Expand Down Expand Up @@ -532,9 +534,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable

- name: Install packages
uses: ./.github/actions/install-with-retries
Expand All @@ -554,7 +557,7 @@ jobs:
run: yarn react-native build

- name: Add Amplify CLI
run: yarn global add @aws-amplify/cli
run: npm install -g @aws-amplify/cli

- name: Get CLI versions
id: cli-version
Expand Down Expand Up @@ -659,9 +662,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable

- name: Restore cypress runner Cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-setup-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable
- name: Restore cypress runner from Cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
id: restore-cypress-cache
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/reusable-tagged-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable
- name: Install packages
uses: ./.github/actions/install-with-retries
with:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/reusable-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2

- name: Enable Corepack
run: corepack enable

- name: Restore node_modules cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 https://github.com/actions/cache/commit/1bd1e32a3bdc45362d1e726936510720a7c30a57
id: restore-cache
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/version-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 https://github.com/actions/setup-node/commit/60edb5dd545a775178f52524783378180af0d1f8
with:
node-version: 20
cache: 'yarn'
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
- name: Enable Corepack
run: corepack enable
- name: Install packages
if: ${{ steps.has-changesets.outputs.has-changesets == 'true' }}
run: yarn --frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.env
.env.local
.yarn
*.log
node_modules
aws-exports.js
Expand Down
13 changes: 13 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
enableGlobalCache: false

enableTelemetry: false

httpTimeout: 60000

nodeLinker: node-modules

supportedArchitectures:
cpu:
- current
os:
- current
2 changes: 1 addition & 1 deletion docs/jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Config } from 'jest';
import type { Config } from 'jest';

const jestConfig: Config = {
preset: 'ts-jest',
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"flutter:clean": "rm -rf public/flutter/authenticator",
"flutter:copy": "cp -r ./flutter/authenticator/build/web public/flutter/authenticator",
"prebuild": "yarn build:cssvars-table && yarn build:props-tables",
"build": "NODE_OPTIONS=\"--max-old-space-size=4096\" next build",
"build": "yarn prebuild && NODE_OPTIONS=\"--max-old-space-size=4096\" next build && yarn postbuild",
"build:cssvars-table": "node --require esbuild-register ./scripts/generate-cssvars-table-data.ts",
"build:props-tables": "node --require esbuild-register ./scripts/generate-props-tables-data.ts",
"clean": "rimraf node_modules .next && yarn flutter:clean",
Expand Down
17 changes: 17 additions & 0 deletions environments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
"private": true,
"name": "@aws-amplify/ui-environments",
"version": "0.0.1",
"workspaces": [
"ai",
"ai/*",
"auth",
"auth/*",
"auth/gen2/*",
"datastore",
"datastore/*",
"geo",
"geo/*",
"liveness",
"liveness/*",
"storage",
"storage/*",
"in-app-messaging",
"in-app-messaging/*"
],
"scripts": {
"ai": "yarn --cwd ai/",
"auth": "yarn --cwd auth/",
Expand Down
Loading
Loading