Skip to content

Commit

Permalink
Merge pull request #8751 from Agoric/mfig-integration-deps
Browse files Browse the repository at this point in the history
ci(registry): use Endo workspace packages
  • Loading branch information
mergify[bot] authored Jan 19, 2024
2 parents 1cea34c + e0741e5 commit 01baa28
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-config-jessie": "^0.0.6",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^40.1.0",
"eslint-plugin-jsdoc": "^46.4.3",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3"
}
Expand Down
14 changes: 10 additions & 4 deletions scripts/registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ publish() {
git config --global user.name "Agoric CI"
git config --global user.email "[email protected]"

versions='{}'
VERSIONSHASH=$(echo '{}' | git hash-object -w --stdin)
for d in ${REGISTRY_PUBLISH_WORKSPACES-} "$thisdir/.."; do
test -d "$d" || continue

Expand All @@ -58,7 +58,7 @@ publish() {
test -n "$prior" || prior=$(git rev-parse HEAD)
git checkout -B lerna-publish

echo "$versions" | "$thisdir/set-versions.sh" "$d"
(popd >/dev/null && git cat-file blob "$VERSIONSHASH") | "$thisdir/set-versions.sh" .

yarn install
yarn build
Expand All @@ -67,10 +67,16 @@ publish() {
# Publish the packages to our local service.
# without concurrency until https://github.com/Agoric/agoric-sdk/issues/8091
yarn lerna publish --concurrency 1 prerelease --exact \
--dist-tag="$DISTTAG" --preid=dev"-$(git rev-parse --short=7 HEAD)" \
--dist-tag="$DISTTAG" --preid=dev \
--no-push --no-git-reset --no-git-tag-version --no-verify-access --yes

versions=$("$thisdir/get-versions.sh" . | jq "$versions + .")
# Change any version prefices to an exact match, and merge our versions.
VERSIONSHASH=$(jq --argfile versions <(popd >/dev/null && git cat-file blob "$VERSIONSHASH") \
'[to_entries[] | { key: .key, value: (.value | sub("^[~^]"; "")) }]
| from_entries
| . + $versions' \
<("$thisdir/get-versions.sh" .) \
| (popd >/dev/null && git hash-object -w --stdin))

git commit -am "chore: update versions"
git checkout "$prior"
Expand Down

0 comments on commit 01baa28

Please sign in to comment.