Added Monorepo Setup To Changelog Workflow (#42002)

This commit is contained in:
Christopher Allford 2023-12-10 23:15:56 -08:00 committed by GitHub
parent e718975963
commit 798e79f7b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 19 deletions

View File

@ -18,29 +18,16 @@ jobs:
issues: write issues: write
pull-requests: write pull-requests: write
steps: steps:
- name: Checkout code - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup PNPM - name: Setup WooCommerce Monorepo
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd uses: ./.github/actions/setup-woocommerce-monorepo
with: with:
version: '8.6.7' install: 'monorepo-utils...'
build: 'monorepo-utils'
- name: Setup Node - name: Generate Changelog File
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
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm utils changefile ${{github.event.number || inputs.prNumber}} -o ${{ github.repository_owner }} run: pnpm utils changefile ${{github.event.number || inputs.prNumber}} -o ${{ github.repository_owner }}