From 8f432753a7859e20025bfac6bc98ef5f7a767a34 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 5 Dec 2023 22:16:29 -0500 Subject: [PATCH] chore: fix release --- .github/workflows/ci.generate.ts | 2 +- .github/workflows/ci.yml | 2 +- scripts/createForTesting.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts index 493ddcb..41b329c 100644 --- a/.github/workflows/ci.generate.ts +++ b/.github/workflows/ci.generate.ts @@ -185,7 +185,7 @@ const ci = { }, { name: "Create plugin file", - run: "deno run --allow-read=. --allow-write=. scripts/create_plugin_file.ts", + run: "deno run -A scripts/create_plugin_file.ts", }, { name: "Get tag version", diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b17c39..716df7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,7 +125,7 @@ jobs: echo "dprint-plugin-prettier-x86_64-pc-windows-msvc.zip: ${{needs.build.outputs.ZIP_CHECKSUM_X86_64_PC_WINDOWS_MSVC}}" echo "dprint-plugin-prettier-x86_64-unknown-linux-gnu.zip: ${{needs.build.outputs.ZIP_CHECKSUM_X86_64_UNKNOWN_LINUX_GNU}}" - name: Create plugin file - run: deno run --allow-read=. --allow-write=. scripts/create_plugin_file.ts + run: deno run -A scripts/create_plugin_file.ts - name: Get tag version id: get_tag_version run: 'echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}' diff --git a/scripts/createForTesting.ps1 b/scripts/createForTesting.ps1 index 8fa1037..932e03d 100644 --- a/scripts/createForTesting.ps1 +++ b/scripts/createForTesting.ps1 @@ -12,4 +12,4 @@ deno task build # todo: support more operating systems cargo build --release Compress-Archive -Force -Path target/release/dprint-plugin-prettier.exe -DestinationPath target/release/dprint-plugin-prettier-x86_64-pc-windows-msvc.zip -pwsh -Command { cd target/release && deno run --allow-read=../../ --allow-write=. --allow-env ../../scripts/create_plugin_file.ts --test } +pwsh -Command { cd target/release && deno run -A ../../scripts/create_plugin_file.ts --test }