From 9b82b7b427f092a4e8468b8f93d5f843f46f8129 Mon Sep 17 00:00:00 2001 From: Angus Bayley Date: Fri, 22 Nov 2024 11:29:41 +0000 Subject: [PATCH] ci: remove changesets-enforce --- .github/workflows/changeset-enforce.yml | 43 ------------------------- 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/changeset-enforce.yml diff --git a/.github/workflows/changeset-enforce.yml b/.github/workflows/changeset-enforce.yml deleted file mode 100644 index 7b489745eb0c..000000000000 --- a/.github/workflows/changeset-enforce.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: No patch level changesets -on: - pull_request - -jobs: - check_changesets: - runs-on: ubuntu-22.04 - - steps: - - name: Checkout repository (feature branch) - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - fetch-depth: 200 - - - name: Fetch develop branch - run: | - git fetch origin develop:develop --depth=1 - - - name: Verify develop branch - run: git branch --all - - - uses: pnpm/action-setup@v4 - with: - version: 9.12.3 - - - name: Install changesets - run: pnpm add -g @changesets/cli@2.27.7 - - - name: Generate changeset status - run: pnpm changeset status --output=changeset-status.json - - - name: Check for patch level changesets - run: | - PATCH_CHANGESET_IDS=$(jq -r '.changesets[] | select(.releases[].type == "patch") | .id' changeset-status.json) - if [ -n "$PATCH_CHANGESET_IDS" ]; then - echo "Patch changesets found:" - echo "$PATCH_CHANGESET_IDS" - echo "❌ Patch level changesets are reserved for hotfixes, use major or minor only" - exit 1 - else - echo "✅ No patch level changesets found." - fi \ No newline at end of file