From 6242b6fe5fcc7845d994cbf60088e41ac3580063 Mon Sep 17 00:00:00 2001 From: ilbertt Date: Thu, 21 Aug 2025 11:46:52 +0200 Subject: [PATCH 1/4] ci: share deno setup --- .github/actions/setup-deno/action.yml | 10 ++++++++++ .github/workflows/check-style.yml | 10 ++-------- .github/workflows/pull-project-docs.yml | 5 +---- .github/workflows/release.yml | 5 +---- 4 files changed, 14 insertions(+), 16 deletions(-) create mode 100644 .github/actions/setup-deno/action.yml diff --git a/.github/actions/setup-deno/action.yml b/.github/actions/setup-deno/action.yml new file mode 100644 index 0000000..6e7c004 --- /dev/null +++ b/.github/actions/setup-deno/action.yml @@ -0,0 +1,10 @@ +name: Setup Deno + +runs: + using: composite + steps: + - name: Setup Deno + uses: dfinity/ci-tools/actions/setup-deno@0ecf2eb4ee2965f601c8a3f89d4c55dfbe4d9c8c + with: + deno_version_file: .tool-versions + install_allow_scripts: "npm:sharp@0.33.5" diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml index 425322e..e51fa7e 100644 --- a/.github/workflows/check-style.yml +++ b/.github/workflows/check-style.yml @@ -16,10 +16,7 @@ jobs: - name: Checkout Code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@main - with: - deno_version_file: .tool-versions + - uses: ./.github/actions/setup-deno - name: Check Linting run: deno lint @@ -31,10 +28,7 @@ jobs: - name: Checkout Code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@main - with: - deno_version_file: .tool-versions + - uses: ./.github/actions/setup-deno - name: Check Formatting run: deno fmt --check diff --git a/.github/workflows/pull-project-docs.yml b/.github/workflows/pull-project-docs.yml index 02de094..e0c1a44 100644 --- a/.github/workflows/pull-project-docs.yml +++ b/.github/workflows/pull-project-docs.yml @@ -24,10 +24,7 @@ jobs: - name: Checkout this repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@main - with: - deno_version_file: .tool-versions + - uses: ./.github/actions/setup-deno - name: Prepare parameters id: params diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d48a5a5..1f71d69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,7 @@ jobs: - name: Checkout Code uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@main - with: - deno_version_file: .tool-versions + - uses: ./.github/actions/setup-deno - name: Deploy Docs to Juno satellite env: From 4ade1662da899d1196d30c0f6e831d0218750cf2 Mon Sep 17 00:00:00 2001 From: ilbertt Date: Thu, 21 Aug 2025 11:49:44 +0200 Subject: [PATCH 2/4] fix: quotes are not needed --- .github/actions/setup-deno/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-deno/action.yml b/.github/actions/setup-deno/action.yml index 6e7c004..376ee53 100644 --- a/.github/actions/setup-deno/action.yml +++ b/.github/actions/setup-deno/action.yml @@ -7,4 +7,4 @@ runs: uses: dfinity/ci-tools/actions/setup-deno@0ecf2eb4ee2965f601c8a3f89d4c55dfbe4d9c8c with: deno_version_file: .tool-versions - install_allow_scripts: "npm:sharp@0.33.5" + install_allow_scripts: npm:sharp@0.33.5 From 39bf4634173fbb86878bb8ccec2b7b0d15a0ec4d Mon Sep 17 00:00:00 2001 From: ilbertt Date: Thu, 21 Aug 2025 11:51:15 +0200 Subject: [PATCH 3/4] ci: use last commit --- .github/actions/setup-deno/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-deno/action.yml b/.github/actions/setup-deno/action.yml index 376ee53..faa33d1 100644 --- a/.github/actions/setup-deno/action.yml +++ b/.github/actions/setup-deno/action.yml @@ -4,7 +4,7 @@ runs: using: composite steps: - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@0ecf2eb4ee2965f601c8a3f89d4c55dfbe4d9c8c + uses: dfinity/ci-tools/actions/setup-deno@958c448b3352d872dd6fd1e0b44d3d4489d1382c with: deno_version_file: .tool-versions install_allow_scripts: npm:sharp@0.33.5 From d4d8a2ea041a48a85345700e826c2d4b7677de7c Mon Sep 17 00:00:00 2001 From: ilbertt Date: Thu, 21 Aug 2025 11:53:09 +0200 Subject: [PATCH 4/4] ci: use main branch --- .github/actions/setup-deno/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-deno/action.yml b/.github/actions/setup-deno/action.yml index faa33d1..14b0faf 100644 --- a/.github/actions/setup-deno/action.yml +++ b/.github/actions/setup-deno/action.yml @@ -4,7 +4,7 @@ runs: using: composite steps: - name: Setup Deno - uses: dfinity/ci-tools/actions/setup-deno@958c448b3352d872dd6fd1e0b44d3d4489d1382c + uses: dfinity/ci-tools/actions/setup-deno@main with: deno_version_file: .tool-versions install_allow_scripts: npm:sharp@0.33.5