From 798e79f7b1bb5cd3db376de8712ad122d0094112 Mon Sep 17 00:00:00 2001 From: Christopher Allford <6451942+ObliviousHarmony@users.noreply.github.com> Date: Sun, 10 Dec 2023 23:15:56 -0800 Subject: [PATCH] Added Monorepo Setup To Changelog Workflow (#42002) --- .github/workflows/changelog-auto-add.yml | 25 ++++++------------------ 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/changelog-auto-add.yml b/.github/workflows/changelog-auto-add.yml index 82ea28193a4..fb032b04126 100644 --- a/.github/workflows/changelog-auto-add.yml +++ b/.github/workflows/changelog-auto-add.yml @@ -18,29 +18,16 @@ jobs: issues: write pull-requests: write steps: - - name: Checkout code + - name: Checkout uses: actions/checkout@v3 - - name: Setup PNPM - uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd + - name: Setup WooCommerce Monorepo + uses: ./.github/actions/setup-woocommerce-monorepo with: - version: '8.6.7' + install: 'monorepo-utils...' + build: 'monorepo-utils' - - name: Setup Node - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c - with: - node-version-file: .nvmrc - cache: pnpm - registry-url: 'https://registry.npmjs.org' - - - name: Install prerequisites - run: | - pnpm install --filter monorepo-utils --ignore-scripts - # ignore scripts speeds up setup signficantly, but we still need to build monorepo utils - pnpm build - working-directory: tools/monorepo-utils - - - name: Add changelog + - name: Generate Changelog File env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: pnpm utils changefile ${{github.event.number || inputs.prNumber}} -o ${{ github.repository_owner }}