Skip to content

Commit

Permalink
Run yarn to generate CSS files for Composer.
Browse files Browse the repository at this point in the history
Fixes #21

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
  • Loading branch information
ibennetch committed Dec 28, 2019
1 parent 8b500ea commit 31261e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/daily-composer
Expand Up @@ -53,6 +53,15 @@ line_counts() {
fi
}

generate_css() {
yarn install --non-interactive --silent
git add --force themes/*/css/*.css
git add --force themes/*/css/*.css.map
if ! git diff --quiet --cached ; then
git commit -m 'Update generated CSS files'
fi
}

# Ensure we have working dir
if [ ! -d "$DIR" ] ; then
git clone git@github.com:phpmyadmin/composer.git "$DIR"
Expand Down Expand Up @@ -111,6 +120,7 @@ for tag in `git branch -r | grep 'phpmyadmin/tags/RELEASE_[45]_[7890]_[0-9]\+\(_
generate_readme
generate_mo
line_counts
generate_css

# Create tag
git tag -a -m "Composer tag for $tag" $newtag
Expand Down

0 comments on commit 31261e2

Please sign in to comment.