File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
load-verdaccio-with-amplify-js Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 6
6
steps :
7
7
- name : Start verdaccio
8
8
run : |
9
- npx verdaccio@5.25.0 &
9
+ npx verdaccio@6.0.5 &
10
10
while ! nc -z localhost 4873; do
11
11
echo "Verdaccio not running yet"
12
12
sleep 1
@@ -15,17 +15,22 @@ runs:
15
15
# Run your commands after verdaccio is up and running
16
16
echo "Verdaccio is up and running, proceeding with the script..."
17
17
shell : bash
18
- - name : Install and run npm-cli-login
18
+ - name : Authenticate with Verdaccio
19
19
shell : bash
20
20
env :
21
21
NPM_REGISTRY : http://localhost:4873/
22
22
NPM_USER : verdaccio
23
23
NPM_PASS : verdaccio
24
24
25
25
run : |
26
- npm i -g npm-cli-adduser
27
- npm-cli-adduser
28
- sleep 1
26
+ TOKEN=$(curl -X PUT \
27
+ -H "Content-Type: application/json" \
28
+ -d "{\"name\": \"$NPM_USER\", \"password\": \"$NPM_PASS\"}" \
29
+ $NPM_REGISTRY-/user/org.couchdb.user:$NPM_USER | jq -r '.token')
30
+
31
+ echo "registry=$NPM_REGISTRY
32
+ //localhost:4873/:_authToken=$TOKEN" > ~/.npmrc
33
+
29
34
- name : Configure registry and git
30
35
shell : bash
31
36
working-directory : ./amplify-js
Original file line number Diff line number Diff line change 10
10
- name : Setup Node.js 18
11
11
uses : actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
12
12
with :
13
- node-version : 18.20.2
13
+ node-version : 18
14
14
env :
15
15
SEGMENT_DOWNLOAD_TIMEOUT_MINS : 2
16
16
- uses : actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
You can’t perform that action at this time.
0 commit comments