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