Skip to content

Commit

Permalink
feat: Add JSR package
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Mar 13, 2024
1 parent 3233da2 commit d33c74f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d33c74f

Please sign in to comment.