Skip to content
package

GitHub Action

Build Yarn and npm

v1.0 Latest version

Build Yarn and npm

package

Build Yarn and npm

Builds Yarn or npm files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build Yarn and npm

uses: linchpin/[email protected]

Learn more about this action in linchpin/action-build-yarn-npm

Choose a version

    ( Yarn | npm ) + ( grunt | gulp )

    This action will utilize either Yarn or npm to install dependencies from your package.json and will additionally run grunt or gulp tasks in order to build your theme or plugin during your workflow.

    The action looks for the inclusion of a gruntfile.js gulpfile,.js or gulpfile.babel.js file in order to determine whether to use yarn or npm.

    Additional Note

    Typically you would use this action in conjunction with Linchpin WP Engine Git Deploy Action or Linchpin Rsync Deploy Action

    Basic Workflow Example:

    name: Deploy to WPEngine
    on:
      push:
        branches:
          - 'master'
    
    jobs:
      build:
        runs-on: ubuntu-latest
        steps:
          - name: Checkout code
            uses: actions/checkout@v2
            with:
              path: build
    
          - name: Build Theme
            uses: linchpin/action-build-yarn-npm@master
            env:
              working_directory: "build/themes/theme-folder-name"
    

    What does this repo need

    • Tests and Validation
    • Community Feedback

    Linchpin