From 8dcab7296d9c50b2955361182bd01a39877b9f23 Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:27:47 +0900 Subject: [PATCH 1/3] ci(deno-udd): Wrong command name s/upgrade/update --- .github/workflows/udd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/udd.yml b/.github/workflows/udd.yml index 9f787a8..6d3564d 100644 --- a/.github/workflows/udd.yml +++ b/.github/workflows/udd.yml @@ -16,7 +16,7 @@ jobs: deno-version: "1.x" - name: Update dependencies run: | - deno task upgrade > ../output.txt + deno task update > ../output.txt env: NO_COLOR: 1 - name: Read ../output.txt From 2fbb86a68d3e2d51702cf20092e7f133a09ea6d8 Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:28:18 +0900 Subject: [PATCH 2/3] ci(deno-udd): Add an necessary permission in `--allow-net` --- deno.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deno.jsonc b/deno.jsonc index f817252..1b09d38 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -4,7 +4,7 @@ "tasks": { "check": "deno fmt && deno lint --fix && deno check --remote **/*.ts && deno test --allow-read", "check:dry": "deno fmt --check && deno lint && deno check --remote **/*.ts && deno test --allow-read", - "update:check": "deno run --allow-env --allow-read --allow-write=.,'~/.local/share/deno-wasmbuild' --allow-run=git,deno --allow-net=deno.land,raw.githubusercontent.com,esm.sh,jsr.io,registry.npmjs.org jsr:@molt/cli@0.19", + "update:check": "deno run --allow-env --allow-read --allow-write=.,'~/.local/share/deno-wasmbuild' --allow-run=git,deno --allow-net=deno.land,raw.githubusercontent.com,esm.sh,jsr.io,api.jsr.io,registry.npmjs.org jsr:@molt/cli@0.19", "update": "deno task update:check --write", "publish:check": "deno task check:dry && deno publish --dry-run --allow-dirty", "publish": "deno run --allow-env --allow-run=deno --allow-read --allow-write=deno.jsonc jsr:@david/publish-on-tag@0.1.x" From 7a9c509afc5658ff99e7f02d8d09c85731191ede Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:29:15 +0900 Subject: [PATCH 3/3] chore: ci --- .github/workflows/ci.yml | 7 +++++-- .github/workflows/udd.yml | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e27f56..004ae4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,17 @@ name: ci +env: + DENO_VERSION: 1.x + on: [push, pull_request] jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: "v1.x" + deno-version: ${{ env.DENO_VERSION }} - name: Check fmt & lint & type check & test run: deno task check:dry diff --git a/.github/workflows/udd.yml b/.github/workflows/udd.yml index 6d3564d..7ac9793 100644 --- a/.github/workflows/udd.yml +++ b/.github/workflows/udd.yml @@ -1,6 +1,9 @@ # ported from https://github.com/jsr-core/unknownutil/blob/v3.18.1/.github/workflows/udd.yml and modified a bit name: Update +env: + DENO_VERSION: 1.x + on: schedule: - cron: "0 0 * * *" @@ -13,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: denoland/setup-deno@v1 with: - deno-version: "1.x" + deno-version: ${{ env.DENO_VERSION }} - name: Update dependencies run: | deno task update > ../output.txt