Skip to content

Commit

Permalink
ci: fix release-please generation script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Aug 12, 2022
1 parent 0f05e25 commit 5bea153
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
21 changes: 0 additions & 21 deletions scripts/gen-release-please-config.jq

This file was deleted.

11 changes: 7 additions & 4 deletions scripts/gen-release-please-config.sh
Expand Up @@ -2,10 +2,13 @@

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
JQ_FILTER_PACKAGES="$SCRIPT_DIR/gen-release-please-config-packages.jq"
JQ_FILTER_CONFIG="$SCRIPT_DIR/gen-release-please-config.jq"

PACKAGES="$(echo $(ls -1 extensions/*/package.json) \
| xargs jq -f $JQ_FILTER_PACKAGES | jq -s "add | { packages: . }")"

echo $(ls -1 extensions/*/package.json) \
| xargs jq -f $JQ_FILTER_PACKAGES | jq -s add | jq -f $JQ_FILTER_CONFIG > release-please-config.json

yarn prettier -w r*.json
RESULT="$(echo $(cat ./release-please-config.json) $PACKAGES | jq -s ".[0] + .[1]" | jq --indent 4 .)"

echo "$RESULT" > ./release-please-config.json

npx prettier -w r*.json

0 comments on commit 5bea153

Please sign in to comment.