Skip to content

Commit

Permalink
chore: read published packages
Browse files Browse the repository at this point in the history
  • Loading branch information
openscript committed Sep 27, 2024
1 parent e3c0708 commit 81a6e75
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .changeset/neat-wasps-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"backend": patch
"frontend": patch
---

Export version number
9 changes: 5 additions & 4 deletions .github/workflows/cd-registries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ jobs:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for package in $(echo '${{ inputs.publishedPackages }}' | jq -c '.[]'); do
NAME=$(echo $package | jq -r '.name')
VERSION=$(echo $package | jq -r '.version')
name=$(echo $package | jq -r '.name')
version=$(echo $package | jq -r '.version')
if pnpm nx show projects -t container | grep -q $NAME; then
pnpm nx run $NAME:container
if pnpm nx show projects -t container | grep -q $name; then
export version=$version
pnpm nx run $name:container
fi
done
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"tags": [
"type=sha",
"latest",
"${VERSION}"
"env=version"
]
}
}
Expand Down

0 comments on commit 81a6e75

Please sign in to comment.