diff --git a/.github/verdaccio/com.example.demo2/package.json b/.github/verdaccio/com.example.demo2/package.json new file mode 100644 index 00000000..79eaa881 --- /dev/null +++ b/.github/verdaccio/com.example.demo2/package.json @@ -0,0 +1,4 @@ +{ + "name": "com.example.demo2", + "version": "1.0.0" +} \ No newline at end of file diff --git a/.github/workflows/e2e-verdaccio.yml b/.github/workflows/e2e-verdaccio.yml index 45863155..ed60e331 100644 --- a/.github/workflows/e2e-verdaccio.yml +++ b/.github/workflows/e2e-verdaccio.yml @@ -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