Skip to content

Commit

Permalink
fix authentication in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
David Herman committed Oct 30, 2023
1 parent f192aa0 commit 01a1fd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI

env:
NODE_VERSION: 18.x
CIUSER: ci
CIEMAIL: [email protected]
CIPASS: dummycipassword
CIPROXY: http://127.0.0.1:4873/

on:
Expand Down Expand Up @@ -58,9 +55,6 @@ jobs:
working-directory: ./test/integration/proxy
timeout-minutes: 3
run: ./ci-proxy.sh '${{ env.CIPROXY }}'
- name: Authenticate Proxy
shell: bash
run: npx npm-cli-adduser -u ${{env.CIUSER}} -p ${{env.CIPASS}} -e ${{env.CIEMAIL}} -r ${{env.CIPROXY}}
- name: Publish to npm Proxy
shell: bash
working-directory: ./test/integration/proxy
Expand Down
2 changes: 1 addition & 1 deletion test/integration/proxy/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PROXY_PASSWORD=dummycipassword
[email protected]
PROXY_SERVER=http://127.0.0.1:4873/

npx npm-cli-adduser -u $PROXY_USER -p PROXY_PASSWORD -e PROXY_EMAIL -r $PROXY_SERVER
npx npm-cli-adduser -u ${PROXY_USER} -p ${PROXY_PASSWORD} -e ${PROXY_EMAIL} -r ${PROXY_SERVER}
(cd pkgs/load && npm publish --registry $PROXY_SERVER)
(cd pkgs/cli && npm publish --registry $PROXY_SERVER)

Expand Down

0 comments on commit 01a1fd3

Please sign in to comment.