Skip to content

Commit

Permalink
@stalniy fix: pre-builds everything to prevent types issues in co-dep…
Browse files Browse the repository at this point in the history
…endent packages (#854)
  • Loading branch information
stalniy authored Nov 21, 2023
1 parent fa23801 commit 37b0f01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
${{ runner.os }}-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run -r build
- name: Release
env:
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
Expand All @@ -48,8 +50,8 @@ jobs:
fi
changed_paths="$(gh pr view --json files --jq '.files.[].path' "${{ github.event.pull_request.number }}" | cut -d / -f 1,2 | uniq)";
./packages/dx/bin/release-packages.sh "$changed_paths";
released_packages=$(./packages/dx/bin/release-packages.sh "$changed_paths");
if [ "${{github.event.pull_request.number}}" != "" ]; then
gh pr comment "${{ github.event.pull_request.number }}" --body "🚀 Released in ${released_packages[@]}"
if [[ "${{github.event.pull_request.number}}" != "" && "$released_packages" != "" ]]; then
gh pr comment "${{ github.event.pull_request.number }}" --body "🚀 Released in ${released_packages}"
fi
1 change: 1 addition & 0 deletions packages/dx/bin/release-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ for path in $changed_packages; do
done

echo "🚀 Released in ${released_packages[@]}" >> $GITHUB_STEP_SUMMARY
echo "${released_packages[@]}"

0 comments on commit 37b0f01

Please sign in to comment.