From a8f7e65dfa674eeca676c429e9f96e4122f1347d Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Tue, 6 Aug 2024 21:48:54 -0300 Subject: [PATCH] Publish on JSR Signed-off-by: Marcos Candeia --- .github/workflows/publish.yaml | 19 +++++++++++++++++++ deno.jsonc | 3 +++ mod.ts | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..9259173 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,19 @@ +name: Publish +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Publish package + run: npx jsr publish \ No newline at end of file diff --git a/deno.jsonc b/deno.jsonc index ad0472c..ffe01c9 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -1,4 +1,7 @@ { + "version": "0.5.0", + "name": "@deco/deno-ast-wasm", + "exports": "./mod.ts", "tasks": { "build": "deno run -A --unstable --config deno.jsonc https://raw.githubusercontent.com/denoland/wasmbuild/0.17.1/main.ts", // Use a canary / local version of wasmbuild diff --git a/mod.ts b/mod.ts index ed11149..c850913 100644 --- a/mod.ts +++ b/mod.ts @@ -1,4 +1,4 @@ -import type { Program } from "https://esm.sh/v130/@swc/wasm@1.3.76"; +import type { Program } from "npm:@swc/wasm@1.3.76"; import { instantiate } from "./lib/deno_ast_wasm.generated.js"; // deno-lint-ignore no-explicit-any