Skip to content

Commit 895a5e0

Browse files
committed
ci: try publish multiple packages
1 parent 7fc23ea commit 895a5e0

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "com.example.demo2",
3+
"version": "1.0.0"
4+
}

.github/workflows/e2e-verdaccio.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ jobs:
2121
- name: login
2222
run: npx npm-cli-login -u tester -p 123456 -e [email protected] -r http://localhost:4873
2323
- name: publish
24-
run: npm publish --registry http://localhost:4873
25-
working-directory: .github/verdaccio/com.example.demo
24+
run: |
25+
root_dir=$(pwd)
26+
for dir in .github/verdaccio/*/; do
27+
if [ -f "$dir/package.json" ]; then
28+
echo "Publishing $dir"
29+
cd "$dir"
30+
npm install
31+
npm publish
32+
cd "$root_dir"
33+
fi
34+
done
2635
- name: check
2736
run: npm info com.example.demo --json --registry http://localhost:4873
2837
working-directory: .github/verdaccio/com.example.demo

0 commit comments

Comments
 (0)