diff --git a/.github/workflows/generate-lockfile.yml b/.github/workflows/generate-lockfile.yml deleted file mode 100644 index 36968a7..0000000 --- a/.github/workflows/generate-lockfile.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Generate lockfile - -# Manual maintenance workflow: run this any time package.json's dependencies -# change, to regenerate and commit package-lock.json. ci.yml already relies -# on this lockfile (setup-node's `cache: npm` + `npm ci`), so a stale -# lockfile will fail CI with a clear npm-ci mismatch error until this is run. -on: - workflow_dispatch: {} - -jobs: - generate-lockfile: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: Install dependencies (generates package-lock.json) - run: npm install - - - name: Commit lockfile if changed - run: | - set -e - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add package-lock.json - # Use `git diff --cached` (staged), not plain `git diff` -- the - # latter only detects changes to already-tracked files and misses - # a brand-new, never-before-committed lockfile entirely. - if git diff --cached --quiet; then - echo "package-lock.json unchanged, nothing to commit" - else - git commit -m "chore: regenerate package-lock.json" - git push - fi