From 9f7148d648bbade97d653621dd23c853a2f83971 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sun, 10 Mar 2024 06:57:45 +0800 Subject: [PATCH] try without pkg --- .github/workflows/jsr.yml | 7 ++++++- deno.json | 3 +++ package.json => package-json | 0 src/mod.ts | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) rename package.json => package-json (100%) diff --git a/.github/workflows/jsr.yml b/.github/workflows/jsr.yml index fddb498..1cde4c9 100644 --- a/.github/workflows/jsr.yml +++ b/.github/workflows/jsr.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - pkg jobs: @@ -19,5 +20,9 @@ jobs: - uses: actions/checkout@v4 - - run: npx jsr publish + - uses: denoland/setup-deno@v1 + with: + deno-version: v1 + + - run: deno publish --dry-run diff --git a/deno.json b/deno.json index b367d4d..59cf90c 100644 --- a/deno.json +++ b/deno.json @@ -2,6 +2,9 @@ "$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json", "name": "@key/gen-ssh-ed25519", "version": "0.1.0", + "imports": { + "ed25519-keygen/": "npm:ed25519-keygen@~0.4.11/" + }, "publish": { "include": [ "deno.json", diff --git a/package.json b/package-json similarity index 100% rename from package.json rename to package-json diff --git a/src/mod.ts b/src/mod.ts index e7664ca..7b4690a 100644 --- a/src/mod.ts +++ b/src/mod.ts @@ -1,4 +1,4 @@ -import ssh from 'npm:ed25519-keygen@~0.4.11/ssh'; +import ssh from 'ed25519-keygen/ssh'; import { PBKDF2 } from './pbkdf2.ts';