diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ad5781d --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.gitignore b/.gitignore index e915afe..564f2e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,10 @@ .* !/.gitignore + +!/.github +/.github/* +!/.github/workflows +/.github/workflows/* +!/.github/workflows/publish.yml + deno.lock diff --git a/deno.json b/deno.json index d96757d..002a666 100644 --- a/deno.json +++ b/deno.json @@ -1,4 +1,7 @@ { + "name": "@zaubrik/djwt", + "version": "3.0.0", + "exports": "./mod.ts", "tasks": { "test": "deno test --check --unstable --allow-all" }, diff --git a/deps.ts b/deps.ts index df9408c..301ab23 100644 --- a/deps.ts +++ b/deps.ts @@ -1,4 +1,4 @@ export { decodeBase64Url, encodeBase64Url, -} from "https://deno.land/std@0.221.0/encoding/base64url.ts"; +} from "jsr:@std/encoding@0.224.0/base64url";