Skip to content

Commit b39c94a

Browse files
author
Ashwin Kumar
committed
testing yarn berry on ci
1 parent 29a8e68 commit b39c94a

File tree

10 files changed

+20755
-15408
lines changed

10 files changed

+20755
-15408
lines changed

.github/actions/node-and-build/action.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ inputs:
77
runs:
88
using: 'composite'
99
steps:
10+
- name: Setup yarn berry
11+
shell: bash
12+
run: |
13+
npm install -g corepack
14+
corepack enable
15+
corepack prepare [email protected] --activate
16+
yarn -v
1017
- name: Setup Node.js 20
1118
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1219
with:
@@ -36,11 +43,11 @@ runs:
3643
run: yarn
3744
shell: bash
3845
working-directory: ./amplify-js
39-
- name: Bootstrap
40-
if: inputs.is-prebuild != 'true' || steps.cache-build-artifacts.outputs.cache-hit != 'true'
41-
run: yarn bootstrap
42-
shell: bash
43-
working-directory: ./amplify-js
46+
# - name: Bootstrap
47+
# if: inputs.is-prebuild != 'true' || steps.cache-build-artifacts.outputs.cache-hit != 'true'
48+
# run: yarn bootstrap
49+
# shell: bash
50+
# working-directory: ./amplify-js
4451
- name: Build packages
4552
if: steps.cache-build-artifacts.outputs.cache-hit != 'true'
4653
run: yarn build

.github/workflows/callable-docs-update.yml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,26 @@ jobs:
6060
# Use -X theirs to automatically resolve conflicts in favor of main
6161
git merge origin/main --no-edit -X theirs --allow-unrelated-histories
6262
echo "MERGE COMPLETE"
63-
git push origin pre-prod/main
63+
git push origin pre-prod/main-test
6464
65-
# Now create a new branch from the updated pre-prod/main
65+
# Now create a new branch from the updated pre-prod/main-test
6666
git checkout -b $TEMP_BRANCH_NAME
6767
68-
- name: Setup yarn berry and Update API references
69-
working-directory: ./docs
70-
run: |
71-
npm install -g corepack
72-
corepack enable
73-
yarn -v
68+
# - name: Setup yarn berry and Update API references
69+
# working-directory: ./docs
70+
# run: |
71+
# # Update API references
72+
# yarn && yarn clean-references -- -p amplify-js
73+
# git add .
74+
# git commit --allow-empty -m "chore: Update amplify-js API references"
7475

75-
# Update API references
76-
yarn && yarn clean-references -- -p amplify-js
77-
git add .
78-
git commit --allow-empty -m "chore: Update amplify-js API references"
79-
80-
- name: Create a docs PR to merge api references back into the docs site
81-
working-directory: ./docs
82-
env:
83-
TEMP_BRANCH_NAME: ${{ needs.docs-update-prep.outputs.branch_name }}
84-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
85-
run: |
86-
git push origin $TEMP_BRANCH_NAME
76+
# - name: Create a docs PR to merge api references back into the docs site
77+
# working-directory: ./docs
78+
# env:
79+
# TEMP_BRANCH_NAME: ${{ needs.docs-update-prep.outputs.branch_name }}
80+
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AMPLIFY_JS_WRITE }}
81+
# run: |
82+
# git push origin $TEMP_BRANCH_NAME
8783

88-
# Create PR from the temp branch to pre-prod/main
89-
gh pr create -B pre-prod/main -H $TEMP_BRANCH_NAME --title 'chore: amplify-js api references update' --body 'Merge the api references changes from the most recent release.'
84+
# # Create PR from the temp branch to pre-prod/main
85+
# gh pr create -B pre-prod/main -H $TEMP_BRANCH_NAME --title 'chore: amplify-js api references update' --body 'Merge the api references changes from the most recent release.'

.github/workflows/callable-get-package-list.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
2626
- name: Install
2727
if: steps.cache-package-list.outputs.cache-hit != 'true'
28-
run: yarn
28+
run: |
29+
yarn -v
30+
yarn
2931
shell: bash
3032
# Need the repo checked out in order to read the file
3133
- name: Dump Package List

.github/workflows/push-integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ concurrency:
88
on:
99
push:
1010
branches:
11-
- replace-with-your-branch
11+
- ashwin-ci-test
1212

1313
jobs:
1414
e2e:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package-lock.json
1919
packages/*/.watchmanconfig
2020
dual-publish-tmp
2121
docs/reference.json
22+
install-state.gz
2223

2324
### Version file - core build artifact
2425
packages/core/src/Platform/version.ts

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,13 @@
135135
"resolutions": {
136136
"@types/babel__traverse": "7.20.0",
137137
"path-scurry": "1.10.0",
138-
"**/glob/minipass": "6.0.2",
139138
"nx": "16.7.0",
140139
"xml2js": "0.5.0",
141-
"tar": "6.2.1",
142-
"**/cross-spawn": "7.0.5"
140+
"tar": "6.2.1"
143141
},
144142
"overrides": {
145143
"tar": "6.2.1",
146144
"cross-spawn": "7.0.5"
147145
},
148-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
146+
"packageManager": "yarn@4.9.0"
149147
}

packages/api-rest/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "@aws-amplify/api-rest",
3-
"private": false,
43
"version": "4.1.4",
54
"description": "Api-rest category of aws-amplify",
65
"main": "./dist/cjs/index.js",

packages/storage/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"./dist/esm/providers/s3/utils/client/runtime/base64/index.native.mjs": "./dist/esm/providers/s3/utils/client/runtime/base64/index.browser.mjs",
1515
"./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/fetch.mjs": "./dist/esm/providers/s3/utils/client/runtime/s3TransferHandler/xhr.mjs",
1616
"./dist/esm/providers/s3/utils/client/runtime/xmlParser/pureJs.mjs": "./dist/esm/providers/s3/utils/client/runtime/xmlParser/dom.mjs",
17-
"fast-xml-parser": false,
18-
"buffer": false
17+
"buffer": false,
18+
"fast-xml-parser": false
1919
},
2020
"sideEffects": false,
2121
"publishConfig": {

0 commit comments

Comments
 (0)