From c106e6d89ab9a57d877cf1aefe089ae41a8a19f7 Mon Sep 17 00:00:00 2001 From: Daniel <790119+DanTheMan827@users.noreply.github.com> Date: Fri, 6 Mar 2026 18:57:26 -0600 Subject: [PATCH] Add workflow to update lock file automatically This workflow automates the process of updating the lock file by checking out the code, configuring Git, setting up Bun, caching dependencies, installing them, and committing any changes back to the repository. --- .github/workflows/update-lockfile.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/update-lockfile.yml diff --git a/.github/workflows/update-lockfile.yml b/.github/workflows/update-lockfile.yml new file mode 100644 index 0000000..db5d39f --- /dev/null +++ b/.github/workflows/update-lockfile.yml @@ -0,0 +1,43 @@ +name: Update Lock File + +on: + workflow_dispatch: + +permissions: + contents: write + +jobs: + update-lock: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Configure Git + uses: DanTheMan827/config-git-user-action@v1 + + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: | + ./bun_modules + ./node_modules + ./bun.lock + key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} + + - name: Install dependencies + run: bun install + + - name: Commit changes + run: | + git add -A . || true + git commit "update lockfile" || true + git push || true