Skip to content

Commit

Permalink
ci: try publish multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ComradeVanti committed Oct 16, 2024
1 parent 7fc23ea commit 765da02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/verdaccio/com.example.demo2/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "com.example.demo2",
"version": "1.0.0"
}
12 changes: 10 additions & 2 deletions .github/workflows/e2e-verdaccio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ jobs:
- name: login
run: npx npm-cli-login -u tester -p 123456 -e tester@example.com -r http://localhost:4873
- name: publish
run: npm publish --registry http://localhost:4873
working-directory: .github/verdaccio/com.example.demo
run: |
root_dir=$(pwd)
for dir in .github/verdaccio/*/; do
if [ -f "$dir/package.json" ]; then
echo "Publishing $dir"
cd "$dir"
npm publish --registry http://localhost:4873
cd "$root_dir"
fi
done
- name: check
run: npm info com.example.demo --json --registry http://localhost:4873
working-directory: .github/verdaccio/com.example.demo

0 comments on commit 765da02

Please sign in to comment.