From d33c74f255aa4040d66344e8ef049ebc3ae41d6a Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Wed, 13 Mar 2024 14:17:21 -0700 Subject: [PATCH] feat: Add JSR package --- .github/workflows/release-please.yml | 4 ++++ README.md | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 9b3f916..2acfa95 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -38,6 +38,10 @@ jobs: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} if: ${{ steps.release.outputs.release_created }} + - name: Publish to JSR + run: npx jsr publish + if: ${{ steps.release.outputs.release_created }} + # Tweets out release announcement - run: 'npx @humanwhocodes/tweet "${{ github.event.repository.full_name }} v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} has been released!\n\n${{ github.event.repository.html_url }}/releases/tag/${{ steps.release.outputs.tag_name }}"' if: ${{ steps.release.outputs.release_created }} diff --git a/README.md b/README.md index 99748b4..7593297 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,21 @@ import { Retrier } from "@humanwhocodes/retry"; ### Deno -Import into your Deno project: +Install using [JSR](https://jsr.io): -```js -import { Retrier } from "https://cdn.skypack.dev/@humanwhocodes/retry?dts"; +```shell +deno add @humanwhocodes/retry + +#or + +jsr add @humanwhocodes/retry ``` +Then import into your Deno project: + +```js +import { Retrier } from "@humanwhocodes/retry"; +``` ### Bun