Skip to content

Commit

Permalink
fix: test npm token
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-li-at-salesforce committed Jun 7, 2024
1 parent f096977 commit 1419006
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ jobs:
- name: Publish user to Verdaccio
id: publish_user
run: |
response=$(curl -s -X PUT "http://${{env.REGISTRY_URL}}/-/user/org.couchdb.user:${{env.NPM_USERNAME}}" \
response=$(curl -s -X PUT "${{env.REGISTRY_URL}}/-/user/org.couchdb.user:${{env.NPM_USERNAME}}" \
-H "Content-Type: application/json" \
-d '{
"_id": "org.couchdb.user:${{env.NPM_USERNAME}}",
"name": "hli",
"name": "${{env.NPM_USERNAME}}",
"roles": [],
"type": "user",
"password": "928318",
"email": "[email protected]"
"password": ${{env.NPM_PASSWORD}},
"email": ${{env.NPM_EMAIL}}
}')
token=$(echo $response | jq -r '.token')
echo "GENERATED_TOKEN: $token"
Expand Down

0 comments on commit 1419006

Please sign in to comment.