Skip to content

Commit 765da02

Browse files
committed
ci: try publish multiple packages
1 parent 7fc23ea commit 765da02

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-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

+10-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@ 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 publish --registry http://localhost:4873
31+
cd "$root_dir"
32+
fi
33+
done
2634
- name: check
2735
run: npm info com.example.demo --json --registry http://localhost:4873
2836
working-directory: .github/verdaccio/com.example.demo

0 commit comments

Comments
 (0)