diff --git a/.github/workflows/deno-lock.yml b/.github/workflows/deno-lock.yml new file mode 100644 index 00000000..27c8a8f9 --- /dev/null +++ b/.github/workflows/deno-lock.yml @@ -0,0 +1,31 @@ +name: Update Deno Lock + +on: + pull_request: + branches: [main] + paths: ["deno.json"] + +jobs: + deno-lock: + name: Update Deno lock + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} + + - name: Setup Deno + uses: nekowinston/setup-deno@main + with: + deno-version: v1.x + + - name: Regenerate Deno lock + run: deno cache --reload **/*.ts --lock-write + + - name: Commit & Push + uses: EndBug/add-and-commit@v9 + with: + message: "chore: regenerate `deno.lock`" + default_author: github_actions + push: true