Skip to content

Commit f3596d1

Browse files
authored
Merge pull request #130 from livesession/feat/themes-resolver
fix(e2e): save Verdaccio auth token to .npmrc in CI for publish
2 parents a480d32 + 7149e43 commit f3596d1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/tests-e2e.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ jobs:
109109
curl -sf http://localhost:4873 > /dev/null 2>&1 && break
110110
sleep 1
111111
done
112-
# Create user for publishing
113-
curl -s -XPUT -H "Content-Type: application/json" \
112+
# Create user and save auth token for publishing
113+
TOKEN=$(curl -s -XPUT -H "Content-Type: application/json" \
114114
-d '{"name":"test","password":"test"}' \
115-
http://localhost:4873/-/user/org.couchdb.user:test > /dev/null
115+
http://localhost:4873/-/user/org.couchdb.user:test | jq -r '.token')
116+
echo "//localhost:4873/:_authToken=\"${TOKEN}\"" >> ~/.npmrc
116117
echo "✅ Verdaccio is running on http://localhost:4873"
117118
118119
- name: 🧪 Run E2E tests

0 commit comments

Comments
 (0)