Skip to content

Commit 1c2b4d9

Browse files
committed
Allows build step to skip if no build script present
Prevents workflow failures when the build script is missing, improving flexibility for packages without a build process.
1 parent 79b24a1 commit 1c2b4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Build package
9090
if: steps.check.outputs.should_publish == 'true'
9191
working-directory: ${{ env.PACKAGE_DIR }}
92-
run: npm run build
92+
run: npm run build --if-present
9393

9494
- name: Publish package
9595
if: steps.check.outputs.should_publish == 'true'

0 commit comments

Comments
 (0)