From b9364c8701ee907c0891ab33984ace936bf1e660 Mon Sep 17 00:00:00 2001 From: sgb-io Date: Wed, 19 Jul 2023 18:42:56 +0100 Subject: [PATCH] Authenticate with verdaccio using env vars --- .github/workflows/publish-dry-run.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-dry-run.yml b/.github/workflows/publish-dry-run.yml index 1a92f7b..877dda2 100644 --- a/.github/workflows/publish-dry-run.yml +++ b/.github/workflows/publish-dry-run.yml @@ -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: "test@test.com" run: | - echo "registry=http://localhost:4873" > .npmrc - # echo "//localhost:4873/:_authToken=$(echo -n 'test:test' | base64)" >> .npmrc - echo -e "test\ntest\ntest@test.com" | npm login --registry=http://localhost:4873 cd packages/fta npm publish --registry http://localhost:4873 cd ../