Skip to content

Simplify build and deploy workflow #1100

Description

@theteknocat

I thought it prudent to create an issue for this to work against in order to have some discussion and a paper trail on what is being done and why.

Impetus

EW's standard workflow was designed for Pantheon and Acquia hosting, which typically involves building a full artifact repo separate from the dev repo to deploy with git. As such, it included a Github workflow action (soon to be removed by @leeomara) that wasn't functioning for multiple reasons.

YG deploys their sites to their own servers using Git and maintaining separate dev and deploy/artifact repositories adds some unnecessary/undesirable process. It also isn't always ideal when switching to a different vendor to be responsible for deployment.

Recommended Changes

  • Compile only DEV version of assets, allow Drupal's aggregation function to minify and consolidate them in production
  • Switch to single package manager for consistency
    Can use either yarn or npm, with potential for different devs to get different versions of packages used for development and build
  • Use a single build mode/command
    More than one build command can produce different results currently.
  • Add and commit the dist dir in the theme, excluding source maps (keep those git-ignored)
    Source maps aren't needed by Drupal, are large, only needed during development and just produce diff noise.
  • Remove/ignore any other unused assets or components that are never consumed by the theme or needed for the site to function

This should clean things up and make it easier in general to maintain and avoid confusion. At the same time, it does not change where/how the assets are compiled for distribution.

Activity

  1. leeomara commented on Jun 29, 2026

    @leeomara
    Member

    The theme build command is currently:

    npm --prefix docroot/themes/custom/yukonca_glider i
    npm --prefix docroot/themes/custom/yukonca_glider run build
    
  2. theteknocat commented on Jun 29, 2026

    @theteknocat
    CollaboratorAuthor

    @leeomara the build command will remain unchanged, but will now build un-minified assets that are now being committed. All commands that targeted different environments and would produce minified assets have been removed to avoid confusion.

    It also only needs to be run during development, never a concern later during deployment etc. Just git pull, good to go.

    I've committed to the current release branch and will deploy to TEST shortly for review.

  3. leeomara commented on Jul 10, 2026

    @leeomara
    Member

    Will this issue be addressed by #1106?

  4. leeomara commented on Jul 14, 2026

    @leeomara
    Member

    @theteknocat was this issue addressed as part of #1106?

  5. willsstrong commented on Sep 1, 2026

    @willsstrong
    Collaborator

    @leeomara Yes, this issue addressed as part of #1106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions