Skip to content

Commit 4ca1357

Browse files
Merge pull request #760 from godaddy-wordpress/chore/fix-workflow-to-clean-first
Run 'clean' before build
2 parents cbaf92b + a1c208e commit 4ca1357

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/prep-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
- name: Bump package.json version
6262
run: npm version --no-git-tag-version --allow-same-version "${NEW_VERSION}"
6363

64+
# This is required because sometimes the `build` script just won't build assets unless `dist/` is cleaned first. Makes no sense, I know!
65+
- name: Clean dist directory
66+
run: npm run clean
67+
6468
- name: Build assets
6569
run: npm run build
6670

0 commit comments

Comments
 (0)