diff --git a/.github/workflows/deps-update.yml b/.github/workflows/deps-update.yml index 43d4fcd..b9f427c 100644 --- a/.github/workflows/deps-update.yml +++ b/.github/workflows/deps-update.yml @@ -19,46 +19,11 @@ jobs: with: ref: dev - - name: 🦕 Setup Deno - uses: denoland/setup-deno@v1 + - name: 🦕 Update Dependencies + uses: hasundue/molt-action@v1-rc with: - deno-version: v1.x - - - name: ⬆️ Update Dependencies - id: deps - run: deno task update -w --unstable-lock --summary=../title.txt --report=../body.md - - - name: 🔍 Check the Result - id: result - uses: andstor/file-existence-action@v3 - with: - files: ../title.txt, ../body.md - - - name: 📘 Read title.txt - id: title - if: ${{ steps.result.outputs.files_exists == 'true' }} - uses: juliangruber/read-file-action@v1 - with: - path: ../title.txt - - - name: 📕 Read body.md - id: body - if: ${{ steps.result.outputs.files_exists == 'true' }} - uses: juliangruber/read-file-action@v1 - with: - path: ../body.md - - - name: 🎈 Create Pull Request - if: ${{ steps.result.outputs.files_exists == 'true' }} - uses: peter-evans/create-pull-request@v6 - with: - commit-message: | - chore(deps): ${{ steps.title.outputs.content }} - - ${{ steps.body.outputs.content }} author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - branch: deps-deno - delete-branch: true base: dev - title: "chore(deps): ${{ steps.title.outputs.content }}" - body: ${{ steps.body.outputs.content }} + branch: deps-deno + commit-prefix: "chore(deps):" + labels: "Type: Dependencies" diff --git a/deno.json b/deno.json index e3538e4..ffd8d17 100644 --- a/deno.json +++ b/deno.json @@ -4,14 +4,13 @@ "test": { "include": ["src/", "test/"] }, "tasks": { "gen": "deno run --allow-read --allow-write ./src/main.ts", - "test": "deno test --allow-read --allow-write", - "update": "deno run --allow-env --allow-read --allow-write --allow-run=git,deno --allow-net=deno.land https://deno.land/x/molt/cli.ts deno.json" + "test": "deno test --allow-read --allow-write" }, "imports": { - "@lowlighter/xml": "jsr:@lowlighter/xml@^4.0.1", - "@std/assert": "jsr:@std/assert@^0.225.1", - "@std/cli": "jsr:@std/cli@^0.224.1", - "@std/path": "jsr:@std/path@^0.224.0", + "@libs/xml": "jsr:@libs/xml@^5.0.2", + "@std/assert": "jsr:@std/assert@^0.225.2", + "@std/cli": "jsr:@std/cli@^0.224.2", + "@std/path": "jsr:@std/path@^0.225.1", "@std/toml": "jsr:@std/toml@^0.224.0", "@wok/case": "jsr:@wok/case@^1.0.1" } diff --git a/deno.lock b/deno.lock index 90c2cc2..396f130 100644 --- a/deno.lock +++ b/deno.lock @@ -2,50 +2,48 @@ "version": "3", "packages": { "specifiers": { - "jsr:@lowlighter/xml@^4.0.1": "jsr:@lowlighter/xml@4.0.1", - "jsr:@std/assert@^0.224.0": "jsr:@std/assert@0.224.0", - "jsr:@std/assert@^0.225.1": "jsr:@std/assert@0.225.1", - "jsr:@std/cli@^0.224.1": "jsr:@std/cli@0.224.1", - "jsr:@std/collections@^0.224.0": "jsr:@std/collections@0.224.1", - "jsr:@std/fmt@^0.225.0": "jsr:@std/fmt@0.225.0", - "jsr:@std/internal@^0.225.0": "jsr:@std/internal@0.225.0", - "jsr:@std/path@^0.224.0": "jsr:@std/path@0.224.0", + "jsr:@libs/typing@2": "jsr:@libs/typing@2.0.3", + "jsr:@libs/xml@^5.0.2": "jsr:@libs/xml@5.0.2", + "jsr:@std/assert@^0.225.2": "jsr:@std/assert@0.225.2", + "jsr:@std/cli@^0.224.2": "jsr:@std/cli@0.224.2", + "jsr:@std/collections@^0.224.0": "jsr:@std/collections@0.224.2", + "jsr:@std/internal@^0.225.1": "jsr:@std/internal@0.225.1", + "jsr:@std/path@^0.225.1": "jsr:@std/path@0.225.1", "jsr:@std/toml@^0.224.0": "jsr:@std/toml@0.224.0", "jsr:@wok/case@^1.0.1": "jsr:@wok/case@1.0.1" }, "jsr": { - "@lowlighter/xml@4.0.1": { - "integrity": "91fec6ea3c2479187148d4ac9de1ab3b92859b9ce96f6df1b1f1a40c6dcf9281" + "@libs/typing@2.0.3": { + "integrity": "e2fb7b9f4a09ffbe322377e05a16dfd48e04249ed667e4c9c06ca166c48b379e" }, - "@std/assert@0.224.0": { - "integrity": "8643233ec7aec38a940a8264a6e3eed9bfa44e7a71cc6b3c8874213ff401967f" - }, - "@std/assert@0.225.1": { - "integrity": "7342fa32a6d82c2c7c98ffea566baa9a892d04b22815b9fcf62cedeee5764f9c", + "@libs/xml@5.0.2": { + "integrity": "f17bb52752acb83eda027245695508de566ddad816a935a08c3d75df5aed0ff8", "dependencies": [ - "jsr:@std/fmt@^0.225.0", - "jsr:@std/internal@^0.225.0" + "jsr:@libs/typing@2" ] }, - "@std/cli@0.224.1": { - "integrity": "f631d47fc9802541399d00a1f77ac62ac709e7465b6bc52547caa358c486b36e", + "@std/assert@0.225.2": { + "integrity": "6fd566c3ea01654d29c2b633298b7fc7599716336233852eb87e9843658fa192", "dependencies": [ - "jsr:@std/assert@^0.225.1" + "jsr:@std/internal@^0.225.1" ] }, - "@std/collections@0.224.1": { - "integrity": "c003ecb1b89e46440cbe692a0603193ed8496d738310a9a2d51b8f8ed8d97a65" + "@std/cli@0.224.2": { + "integrity": "be330ce49928db596338b411037b082d8f8f218b34f8095bcad382fb0c3d6b31", + "dependencies": [ + "jsr:@std/assert@^0.225.2" + ] }, - "@std/fmt@0.225.0": { - "integrity": "982e7d1a8b8869338cc5b58e2669f7c6889ea9822f1278494dc43edba7f4c4b4" + "@std/collections@0.224.2": { + "integrity": "e77819455294e92d4e7ddad1dbfd46f94174c09318e541e6621fac4a4d0ab326" }, - "@std/internal@0.225.0": { - "integrity": "6f501a91aa5ee992f8f9ffb45fa103bc04031df65f6a3550e1c5d7e6304cd34a" + "@std/internal@0.225.1": { + "integrity": "7d8a812be88c2792f15ab9cf46911e521ccca50435948a8f24df5cefda96bde9" }, - "@std/path@0.224.0": { - "integrity": "55bca6361e5a6d158b9380e82d4981d82d338ec587de02951e2b7c3a24910ee6", + "@std/path@0.225.1": { + "integrity": "8c3220635a73730eb51fe43de9e10b79e2724a5bb8638b9355d35ae012fd9429", "dependencies": [ - "jsr:@std/assert@^0.224.0" + "jsr:@std/assert@^0.225.2" ] }, "@std/toml@0.224.0": { @@ -62,10 +60,10 @@ "remote": {}, "workspace": { "dependencies": [ - "jsr:@lowlighter/xml@^4.0.1", - "jsr:@std/assert@^0.225.1", - "jsr:@std/cli@^0.224.1", - "jsr:@std/path@^0.224.0", + "jsr:@libs/xml@^5.0.2", + "jsr:@std/assert@^0.225.2", + "jsr:@std/cli@^0.224.2", + "jsr:@std/path@^0.225.1", "jsr:@std/toml@^0.224.0", "jsr:@wok/case@^1.0.1" ] diff --git a/src/libs/convert.ts b/src/libs/convert.ts index c0d02fc..7f17a13 100644 --- a/src/libs/convert.ts +++ b/src/libs/convert.ts @@ -1,4 +1,4 @@ -import { stringify } from "@lowlighter/xml"; +import { stringify } from "@libs/xml"; import { parse } from "@std/toml"; import { Feed, List, Lists, OPMLOutline } from "../types/mod.ts";