Skip to content

Commit e1f8abf

Browse files
author
Ashwin Kumar
committed
run only required workflows
1 parent 7d5d8e5 commit e1f8abf

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

.github/actions/load-verdaccio-with-amplify-js/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ runs:
4040
NPM_PASS: verdaccio
4141
NPM_EMAIL: [email protected]
4242
run: |
43-
yarn config set registry $NPM_REGISTRY
43+
yarn -v
44+
yarn config set npmRegistryServer $NPM_REGISTRY
4445
npm set registry $NPM_REGISTRY
4546
git config --global user.email $NPM_EMAIL
4647
git config --global user.name $NPM_USER
@@ -51,8 +52,8 @@ runs:
5152
working-directory: ./amplify-js
5253
run: |
5354
scripts/retry-yarn-script.sh -s publish:verdaccio -n 5 -r true
54-
yarn info aws-amplify@unstable description
55-
npm info aws-amplify@unstable version
55+
# yarn info aws-amplify@unstable description
56+
# npm info aws-amplify@unstable version
5657
- name: Upload artifact
5758
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
5859
if: failure()

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout AmplifyJs
1515
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
16+
with:
17+
path: amplify-js
1618
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
1719
id: cache-package-list
1820
with:
@@ -32,11 +34,11 @@ jobs:
3234
- name: Dump Package List
3335
if: steps.cache-package-list.outputs.cache-hit != 'true'
3436
run: |
35-
echo "packages=$(yarn lerna ll | egrep -v "lerna|Done|yarn" | jq -R -s -c 'split("\n")[:-1] | map({name: split(" ")[0], path: split(" ")[-1]})')" > package-list.json
37+
echo "./amplify-js/packages=$(yarn lerna ll | egrep -v "lerna|Done|yarn" | jq -R -s -c 'split("\n")[:-1] | map({name: split(" ")[0], path: split(" ")[-1]})')" > ./amplify-js/package-list.json
3638
- name: Get Package List
3739
id: get_package_list
3840
run: |
39-
cat package-list.json >> $GITHUB_OUTPUT
40-
cat package-list.json
41+
cat ./amplify-js/package-list.json >> $GITHUB_OUTPUT
42+
cat ./amplify-js/package-list.json
4143
outputs:
4244
packages: ${{ steps.get_package_list.outputs.packages }}

.github/workflows/callable-release-verification.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,24 @@ jobs:
77
uses: ./.github/workflows/callable-prebuild-amplify-js.yml
88
with:
99
runs_on: ubuntu-latest
10-
prebuild-macos:
11-
uses: ./.github/workflows/callable-prebuild-amplify-js.yml
12-
with:
13-
runs_on: macos-latest
14-
prebuild-samples-staging:
15-
secrets: inherit
16-
uses: ./.github/workflows/callable-prebuild-samples-staging.yml
10+
# prebuild-macos:
11+
# uses: ./.github/workflows/callable-prebuild-amplify-js.yml
12+
# with:
13+
# runs_on: macos-latest
14+
# prebuild-samples-staging:
15+
# secrets: inherit
16+
# uses: ./.github/workflows/callable-prebuild-samples-staging.yml
1717
e2e:
1818
needs:
19-
- prebuild-macos
19+
# - prebuild-macos
2020
- prebuild-ubuntu
21-
- prebuild-samples-staging
21+
# - prebuild-samples-staging
2222
secrets: inherit
2323
uses: ./.github/workflows/callable-e2e-tests.yml
2424
unit-tests:
2525
needs:
2626
- prebuild-ubuntu
2727
uses: ./.github/workflows/callable-unit-tests.yml
28-
bundle-size-tests:
29-
needs: prebuild-ubuntu
30-
uses: ./.github/workflows/callable-bundle-size-tests.yml
28+
# bundle-size-tests:
29+
# needs: prebuild-ubuntu
30+
# uses: ./.github/workflows/callable-bundle-size-tests.yml

0 commit comments

Comments
 (0)