Skip to content

Commit 76e8694

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

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
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/actions/setup-samples-staging/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ runs:
4444
echo "Branch '$BRANCH' does not exist"
4545
fi
4646
47+
- name: Setup yarn berry
48+
shell: bash
49+
run: |
50+
npm install -g corepack
51+
corepack enable
52+
corepack prepare [email protected] --activate
53+
yarn -v
54+
- name: Setup Node.js 20
55+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
56+
with:
57+
node-version: 20
58+
env:
59+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
60+
4761
- name: Install
4862
run: |
4963
yarn

.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 }}

0 commit comments

Comments
 (0)