Skip to content

Commit

Permalink
Update prepare-deps.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN authored Jan 7, 2024
1 parent 3ba5bc3 commit 3393467
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/prepare-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,19 @@ jobs:
uses: actions/download-artifact@v4
with:
path: .
- name: Remove unurelated packages
run: |
rm -rf rete-qa
rm -rf rete-kit
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Pack the packages and create deps.json
run: |
folders=()
tarballs=()
ignore=("rete-qa" "rete-kit")
for folder in *; do
if [ -d "$folder" ] && [[ ! "${ignore[*]}" =~ "$folder" ]]; then
if [ -d "$folder" ]; then
echo "Enter $folder"
cd $folder
Expand All @@ -89,7 +92,7 @@ jobs:
const folders = '$f'.split(' ')
const tarballs = '$t'.split(' ')
const entries = folders.map((folder, i) => [folder, tarballs[i]])
const entries = folders.filter(Boolean).map((folder, i) => [folder, tarballs[i]])
console.log(JSON.stringify(Object.fromEntries(entries)))
")
Expand Down

0 comments on commit 3393467

Please sign in to comment.