Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/publish-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,21 @@ jobs:
VERDACCIO_TOKEN: ${{ secrets.VERDACCIO_TOKEN }}

- name: Publish to Verdaccio
run: npx nx release publish --registry=${{ secrets.VERDACCIO_REGISTRY_URL }}
shell: bash
run: |
set -euo pipefail
echo "Publishing packages from dist folders to Verdaccio..."

IFS=',' read -ra PROJECTS <<< "${{ steps.libs.outputs.projects }}"
for project in "${PROJECTS[@]}"; do
DIST_PATH="libs/$project/dist"
if [ -d "$DIST_PATH" ]; then
echo "Publishing $project from $DIST_PATH..."
npm publish "$DIST_PATH" --access public --tag alpha --registry="${{ secrets.VERDACCIO_REGISTRY_URL }}"
else
echo "Warning: $DIST_PATH does not exist, skipping $project"
fi
done

- name: Summary
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ docs/docs.backup.json

**/.cache/
.github/codex/

.npmrc
Loading