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 895a5e0
Show file tree
Hide file tree
Showing 2 changed files with 15 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"
}
13 changes: 11 additions & 2 deletions .github/workflows/e2e-verdaccio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ 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 install
npm publish
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 895a5e0

Please sign in to comment.