File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
actions/load-verdaccio-with-amplify-js Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 66 steps :
77 - name : Start verdaccio
88 run : |
9- npx verdaccio@5.25.0 &
9+ npx verdaccio@6.0.5 &
1010 while ! nc -z localhost 4873; do
1111 echo "Verdaccio not running yet"
1212 sleep 1
@@ -15,17 +15,23 @@ runs:
1515 # Run your commands after verdaccio is up and running
1616 echo "Verdaccio is up and running, proceeding with the script..."
1717 shell : bash
18- - name : Install and run npm-cli-login
18+
19+ - name : Authenticate with Verdaccio
1920 shell : bash
2021 env :
2122 NPM_REGISTRY : http://localhost:4873/
2223 NPM_USER : verdaccio
2324 NPM_PASS : verdaccio
2425 NPM_EMAIL : verdaccio@amplify.js
2526 run : |
26- npm i -g npm-cli-adduser
27- npm-cli-adduser
28- sleep 1
27+ TOKEN=$(curl -X PUT \
28+ -H "Content-Type: application/json" \
29+ -d "{\"name\": \"$NPM_USER\", \"password\": \"$NPM_PASS\"}" \
30+ $NPM_REGISTRY-/user/org.couchdb.user:$NPM_USER | jq -r '.token')
31+
32+ echo "registry=http://localhost:4873/
33+ //localhost:4873/:_authToken=${TOKEN}" > ~/.npmrc
34+
2935 - name : Configure registry and git
3036 shell : bash
3137 working-directory : ./amplify-js
Original file line number Diff line number Diff line change 7676 GH_TOKEN_STAGING_READ : ${{ secrets.GH_TOKEN_STAGING_READ }}
7777 - name : Load Verdaccio with AmplifyJs
7878 uses : ./amplify-js/.github/actions/load-verdaccio-with-amplify-js
79+
80+ - name : Testing pkg registry
81+ working-directory : amplify-js-samples-staging
82+ run : |
83+ cd samples/${{ inputs.framework }}/${{ inputs.category }}/${{ matrix.sample_name }}
84+ pwd
85+ yarn
86+ yarn why aws-amplify
87+
7988 - name : Run cypress tests for ${{ inputs.test_name }} dev
8089 shell : bash
8190 working-directory : amplify-js-samples-staging
You can’t perform that action at this time.
0 commit comments