From f120c969eb943ce1f4d521df51b3f323afaabe3d Mon Sep 17 00:00:00 2001 From: Dan Hensby Date: Fri, 20 Nov 2026 20:34:13 +0000 Subject: [PATCH] ci: move the release tools out of the .github folder Keeping the release tools in .github/release caused two problems: - Dependabot can't open pull requests that change files under .github/ for the npm ecosystem. Its first run with the new directory failed with "invalid or unauthorized changes" for both updates in that folder, while the updates for the main package went through. - publish.sh removes .github before it builds the major tag, and it runs during semantic-release's publish step. It would therefore delete the release tools while semantic-release was still running from them. Move them to tools/release, and update the release job, the Dependabot directory and .gitignore to match. The package and lockfile don't change. Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 2 +- .github/workflows/release.yml | 8 ++++---- .gitignore | 2 +- {.github => tools}/release/package-lock.json | 0 {.github => tools}/release/package.json | 0 5 files changed, 6 insertions(+), 6 deletions(-) rename {.github => tools}/release/package-lock.json (100%) rename {.github => tools}/release/package.json (100%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 78132a3..769837d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,7 +13,7 @@ updates: # the main package, and the release tools that only the release job installs directories: - "/" - - "/.github/release" + - "/tools/release" schedule: interval: "weekly" groups: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd58440..386b386 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -223,7 +223,7 @@ jobs: cache: 'npm' cache-dependency-path: | package-lock.json - .github/release/package-lock.json + tools/release/package-lock.json - name: Install dependencies # no install scripts, so no dependency code runs before the signatures are verified; semantic-release # still builds lib/ through the version and prepare scripts when it prepares a release @@ -232,10 +232,10 @@ jobs: run: npm audit signatures - name: Install the release tools # semantic-release and its plugins have their own lockfile, so development installs don't include them - run: npm clean-install --ignore-scripts --prefix .github/release + run: npm clean-install --ignore-scripts --prefix tools/release - name: Verify the registry signatures of the release tools - run: npm audit signatures --prefix .github/release + run: npm audit signatures --prefix tools/release - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./.github/release/node_modules/.bin/semantic-release + run: ./tools/release/node_modules/.bin/semantic-release diff --git a/.gitignore b/.gitignore index 399f281..412d3de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /.package/ /node_modules/ -/.github/release/node_modules/ +/tools/release/node_modules/ /coverage/ diff --git a/.github/release/package-lock.json b/tools/release/package-lock.json similarity index 100% rename from .github/release/package-lock.json rename to tools/release/package-lock.json diff --git a/.github/release/package.json b/tools/release/package.json similarity index 100% rename from .github/release/package.json rename to tools/release/package.json