Skip to content

Commit 9a3f852

Browse files
committed
Make sure we build assets when running our deploy workflows
1 parent 0fe0b9a commit 9a3f852

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/wordpress-plugin-asset-update.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
node-version-file: .nvmrc
2121
cache: npm
2222

23+
- name: Build
24+
run: |
25+
npm ci --no-optional
26+
npm run build
27+
2328
- name: WordPress.org plugin asset/readme update
2429
uses: 10up/action-wordpress-plugin-asset-update@stable
2530
env:

.github/workflows/wordpress-plugin-deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v4
1515

16+
- name: Setup node version and npm cache
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version-file: '.nvmrc'
20+
cache: 'npm'
21+
22+
- name: Build
23+
run: |
24+
npm ci --no-optional
25+
npm run build
26+
1627
- name: WordPress Plugin Deploy
1728
id: deploy
1829
uses: 10up/action-wordpress-plugin-deploy@stable

0 commit comments

Comments
 (0)