Skip to content

Commit

Permalink
remove npm-cli-adduser
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Jul 24, 2024
1 parent da2b314 commit f8400b9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/actions/load-verdaccio-with-amplify-js/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@ runs:
- name: Install and run npm-cli-login
shell: bash
env:
NPM_REGISTRY: http://localhost:4873/
NPM_REGISTRY: http://localhost:4873
NPM_USER: verdaccio
NPM_PASS: verdaccio
NPM_EMAIL: [email protected]
run: |
npm i -g npm-cli-adduser
npm-cli-adduser
sleep 1
curl -s \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X PUT --data "{\"name\": \"$NPM_USER\", \"password\": \"$NPM_PASS\"}" \
$NPM_REGISTRY/-/user/org.couchdb.user:$NPM_USER \
&& curl -s \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
-X PUT --data "{\"name\": \"$NPM_USER\", \"password\": \"$NPM_PASS\"}" \
--user $NPM_USER:$NPM_PASS $NPM_REGISTRY/-/user/org.couchdb.user:$NPM_USER
- name: Configure registry and git
shell: bash
working-directory: ./amplify-js
Expand Down

0 comments on commit f8400b9

Please sign in to comment.