Skip to content

Commit

Permalink
Fix Verdaccio auth in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Feb 11, 2024
1 parent de754dc commit 395dfa0
Show file tree
Hide file tree
Showing 5 changed files with 866 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .verdaccio/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
storage: ../tmp/local-registry/storage

auth:
htpasswd:
file: ./htpasswd

uplinks:
npmjs:
url: https://registry.npmjs.org/
Expand All @@ -14,7 +18,7 @@ packages:
access: $all
proxy: npmjs

logs:
log:
type: stdout
format: pretty
level: warn
Expand Down
1 change: 1 addition & 0 deletions .verdaccio/htpasswd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test:O4DxDz6z4xOg6:autocreated 2024-02-11T19:15:17.414Z
3 changes: 3 additions & 0 deletions e2e/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export async function setup() {
});
console.info(`🚀 Verdaccio local registry started at ${registry}`);

await promisify(exec)(
`npm-cli-login -u test -p 1234 -e [email protected] -r ${registry}`
);
await promisify(exec)(`npm unpublish --registry ${registry} --force`);
await promisify(exec)(`npm publish --registry ${registry} --force`);
console.info('🚀 Published package to local registry');
Expand Down
Loading

0 comments on commit 395dfa0

Please sign in to comment.