diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index c43aaf9..fd87ca4 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -1,8 +1,8 @@ name: Deno CI on: [push, pull_request] jobs: - build: - name: ${{ matrix.os }} build + test: + name: ${{ matrix.os }} test runs-on: ${{ matrix.os }}-latest if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} strategy: @@ -13,7 +13,7 @@ jobs: DENO_BUILD_MODE: release V8_BINARY: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Deno uses: denoland/setup-deno@v1 with: @@ -23,3 +23,16 @@ jobs: - name: Check formatting run: deno fmt --check if: ${{ !contains(matrix.os, 'windows') }} + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: 1.x + - name: Publish package + run: deno publish \ No newline at end of file diff --git a/base91_test.ts b/base91_test.ts index fb53f9c..f9587ad 100644 --- a/base91_test.ts +++ b/base91_test.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; +import { assertEquals } from "jsr:@std/assert@0.218.2"; import { decode, encode } from "./base91.ts"; const encoder = new TextEncoder(); diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..dc6dbd8 --- /dev/null +++ b/deno.json @@ -0,0 +1,5 @@ +{ + "name": "@opliko/base91", + "version": "1.1.0", + "exports": "./base91.ts" +} diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..cbeba88 --- /dev/null +++ b/deno.lock @@ -0,0 +1,21 @@ +{ + "version": "3", + "packages": { + "specifiers": { + "jsr:@std/assert@0.218.2": "jsr:@std/assert@0.218.2", + "jsr:@std/fmt@^0.218.2": "jsr:@std/fmt@0.218.2" + }, + "jsr": { + "@std/assert@0.218.2": { + "integrity": "7f0a5a1a8cf86607cd6c2c030584096e1ffad27fc9271429a8cb48cfbdee5eaf", + "dependencies": [ + "jsr:@std/fmt@^0.218.2" + ] + }, + "@std/fmt@0.218.2": { + "integrity": "99526449d2505aa758b6cbef81e7dd471d8b28ec0dcb1491d122b284c548788a" + } + } + }, + "remote": {} +}