diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 527bfd8..5ab7c1d 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,3 +1,9 @@ +# ============================================================================= +# File : automerge.yml +# Author : yukimemi +# Last Change : 2024/07/06 21:32:33. +# ============================================================================= + name: automerge on: @@ -9,9 +15,6 @@ on: jobs: automerge: runs-on: ubuntu-latest - env: - GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}" - steps: - name: Setup repo uses: actions/checkout@v3 diff --git a/.github/workflows/udd.yml b/.github/workflows/molt.yml similarity index 75% rename from .github/workflows/udd.yml rename to .github/workflows/molt.yml index 530bf62..8e251ee 100644 --- a/.github/workflows/udd.yml +++ b/.github/workflows/molt.yml @@ -1,4 +1,10 @@ -name: udd +# ============================================================================= +# File : molt.yml +# Author : yukimemi +# Last Change : 2024/07/06 21:31:40. +# ============================================================================= + +name: molt on: workflow_dispatch: @@ -12,8 +18,6 @@ jobs: update: permissions: write-all runs-on: ubuntu-latest - env: - GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}" steps: - name: Generate app token @@ -36,14 +40,14 @@ jobs: with: deno-version: v1.x - - name: Update dependencies with udd - id: run-deno-udd + - name: Update dependencies with molt + id: run-deno-molt env: NO_COLOR: true run: | { - echo 'UDD_RESULT<> $GITHUB_OUTPUT @@ -61,11 +65,11 @@ jobs:
Details
``` - ${{ steps.run-deno-udd.outputs.UDD_RESULT }} + ${{ steps.run-deno-molt.outputs.MOLT_RESULT }} ```
- branch: udd-update + branch: molt-update labels: automerge author: GitHub delete-branch: true diff --git a/deno.jsonc b/deno.jsonc index 379bb22..4c596dc 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,8 +1,4 @@ { - "lint-staged": { - "*": "deno lint && deno fmt", - "deno.jsonc": "deno task setup-hooks" - }, "tasks": { // general permissions "run": "deno run --allow-env --allow-read --allow-net", @@ -11,31 +7,31 @@ "main": "deno task run main.ts", "start": "deno task run --watch server.ts", // development - "test": "deno test --allow-env --allow-read --allow-net --allow-none --unstable-kv", + "test": "deno test --allow-env --allow-read --allow-net --allow-none", "cov": "deno task test --coverage=cov_profile; deno coverage cov_profile", "lint": "deno lint --ignore=cov_profile", "fmt": "deno fmt --ignore=cov_profile", - "check": "deno check --unstable-kv ./**/*.ts", + "check": "deno check ./**/*.ts", "ci": "deno task check && deno task lint && deno task fmt --check && deno task test", "deps": "deno run --allow-read --allow-write --allow-net --allow-run https://deno.land/x/udd@0.8.2/main.ts --test='deno task test' deno.jsonc ./**.*.ts", // git hooks "setup-hooks": "deno run --allow-read --allow-run https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/setup-hooks.ts", "pre-commit": "deno task doc && deno run --allow-read --allow-env --allow-run --allow-write https://pax.deno.dev/kawarimidoll/deno-dev-template/scripts/lint-staged.ts", "pre-push": "deno task ci" + // molt + "update": "deno run --allow-env --allow-read --allow-write --allow-run --allow-net jsr:@molt/cli ./**/*.ts", + "update:write": "deno task -q update --write", + "update:commit": "deno task -q update --commit --pre-commit=fmt,lint" }, "fmt": { "useTabs": false, "lineWidth": 100, "indentWidth": 2, "singleQuote": false, - "include": [ - "denops" - ] + "include": ["denops"] }, "lint": { - "include": [ - "denops" - ] + "include": ["denops"] }, "lock": false }