Skip to content

Commit

Permalink
feat: publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Mar 1, 2024
1 parent 334c0c2 commit 50ced21
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion base91_test.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
5 changes: 5 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@opliko/base91",
"version": "1.1.0",
"exports": "./base91.ts"
}
21 changes: 21 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 50ced21

Please sign in to comment.