diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4b6cf7670..bd0d58597 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,38 @@ jobs: with: ref: trunk - - name: Setup - uses: WordPress/wporg-repo-tools/.github/actions/setup@trunk + - name: Install NodeJS + uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 with: - token: ${{ secrets.GITHUB_TOKEN }} + node-version-file: ".nvmrc" + cache: "yarn" + + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2.25.4 + with: + php-version: "7.4" + env: + COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Install php dependencies + shell: bash + run: | + composer install || composer update wporg/* + + - name: Git reset and clean + run: | + git reset --hard + git clean -f -d + + - name: Setup configs + shell: bash + run: | + yarn setup:tools + + - name: yarn install and build + run: | + yarn + yarn build - name: Trim the repo down to just the source and built files run: |