Skip to content

Commit

Permalink
chore(deps): Modify the way to manage dependencies (#60)
Browse files Browse the repository at this point in the history
- Use [hasundue/molt-action](https://github.com/hasundue/molt-action)
instead of the original GitHub Actions workflow.
- Update existing dependencies
  • Loading branch information
5ouma committed May 21, 2024
1 parent 94caa19 commit 3ef89e7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 80 deletions.
45 changes: 5 additions & 40 deletions .github/workflows/deps-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
11 changes: 5 additions & 6 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
64 changes: 31 additions & 33 deletions deno.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
]
Expand Down
2 changes: 1 addition & 1 deletion src/libs/convert.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit 3ef89e7

Please sign in to comment.