Skip to content

Commit

Permalink
Authenticate with verdaccio using env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sgb-io committed Jul 19, 2023
1 parent c267a1d commit b9364c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ jobs:
sleep 10
- name: Publish package
env:
NPM_CONFIG_REGISTRY: "http://localhost:4873/"
NPM_CONFIG_USERNAME: "test"
NPM_CONFIG_PASSWORD: "test"
NPM_CONFIG_EMAIL: "[email protected]"
run: |
echo "registry=http://localhost:4873" > .npmrc
# echo "//localhost:4873/:_authToken=$(echo -n 'test:test' | base64)" >> .npmrc
echo -e "test\ntest\[email protected]" | npm login --registry=http://localhost:4873
cd packages/fta
npm publish --registry http://localhost:4873
cd ../
Expand Down

0 comments on commit b9364c8

Please sign in to comment.