Skip to content

Commit

Permalink
Make sure we build assets when running our deploy workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dkotter committed Jul 1, 2024
1 parent 0fe0b9a commit 9a3f852
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/wordpress-plugin-asset-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
node-version-file: .nvmrc
cache: npm

- name: Build
run: |
npm ci --no-optional
npm run build
- name: WordPress.org plugin asset/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/wordpress-plugin-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node version and npm cache
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Build
run: |
npm ci --no-optional
npm run build
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
Expand Down

0 comments on commit 9a3f852

Please sign in to comment.