Skip to content

Commit 3e3efef

Browse files
committed
ci: copy readme from root when needed
1 parent 6ae5efe commit 3e3efef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ jobs:
117117
shell: bash
118118
run: pnpm install --frozen-lockfile
119119

120+
- name: Copy root README for main package
121+
if: ${{ steps.resolve.outputs.PKG_NAME == '<main>' && steps.resolve.outputs.PACKAGE_PATH != '.' }}
122+
run: |
123+
echo "Copying README.md to ${{ steps.resolve.outputs.PACKAGE_PATH }}"
124+
cp README.md "${{ steps.resolve.outputs.PACKAGE_PATH }}/README.md"
125+
120126
- name: Build
121127
run: pnpm build
122128
working-directory: ${{ steps.resolve.outputs.PACKAGE_PATH }}

0 commit comments

Comments
 (0)