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 fc24f02 commit f096977
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ jobs:
release:
name: Release
needs: localNPMRegistry

runs-on: ubuntu-latest
env:
REGISTRY_URL: 'http://localhost:4873'
NPM_USERNAME: 'hli'
NPM_PASSWORD: '928318'
NPM_EMAIL: '[email protected]'
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
Expand Down Expand Up @@ -53,10 +57,10 @@ jobs:
- name: Publish user to Verdaccio
id: publish_user
run: |
response=$(curl -s -X PUT "http://localhost:4873/-/user/org.couchdb.user:hli" \
response=$(curl -s -X PUT "http://${{env.REGISTRY_URL}}/-/user/org.couchdb.user:${{env.NPM_USERNAME}}" \
-H "Content-Type: application/json" \
-d '{
"_id": "org.couchdb.user:hli",
"_id": "org.couchdb.user:${{env.NPM_USERNAME}}",
"name": "hli",
"roles": [],
"type": "user",
Expand Down

0 comments on commit f096977

Please sign in to comment.