Skip to content

Fix detection of empty content in events (#1450) #131

Fix detection of empty content in events (#1450)

Fix detection of empty content in events (#1450) #131

# .github/workflows/release.yml
name: Build Test for Sunflower 3.0 (on merge)
on:
push:
branches:
- main
env:
NODE_VERSION: 24
jobs:
deploy-on-merge:
runs-on: ubuntu-latest
env:
PROJECT_ROOT: ${{ github.workspace }}/sunflower26
defaults:
run:
working-directory: ${{ env.PROJECT_ROOT }}
steps:
- uses: actions/checkout@v6
with:
path: sunflower26
- name: check theme version against tag
run: |
THEME_VERSION=$(cat sass/style.scss | grep Version | sed -r 's/version: +//I')
V="v"
echo Version in style.scss: $THEME_VERSION
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Cache node_modules directory
uses: actions/cache@v5
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm packages
# if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm install
- name: Build CSS
run: npm run compile:css
- name: Build CSS-RTL
run: npm run compile:rtl
- name: Build Editor CSS
run: npm run compile:editor
- name: Build JS
run: npm run build
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: cs2pr
- name: run install composer
run: |
composer install
cd lib && composer install
- name: Make bundle
run: npm run bundle