Skip to content

Commit

Permalink
Version 1.2.0, publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Mar 19, 2024
1 parent 860c848 commit 14d1c97
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to JSR
on:
push:
tags:
- '*' # Publish every time a tag is pushed (unless it contains '/')

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ MIT licensed.
## Installation

- Deno: `deno add @bradenmacdonald/quantity-math-js`
- Deno (no install): `import { Quantity } from "jsr:@bradenmacdonald/quantity-math-js@1.0.1";`
- Deno (no install): `import { Quantity } from "jsr:@bradenmacdonald/quantity-math-js@1.2.0";`
- NPM: `npx jsr add @bradenmacdonald/quantity-math-js`
- Yarn: `yarn dlx jsr add @bradenmacdonald/quantity-math-js`
- pnpm: `pnpm dlx jsr add @bradenmacdonald/quantity-math-js`
- Bun: `bunx jsr add @bradenmacdonald/quantity-math-js`
- Browser:
```html
<script type="module">
import { Quantity } from "https://esm.sh/jsr/@bradenmacdonald/quantity-math-js@1.0.1";
import { Quantity } from "https://esm.sh/jsr/@bradenmacdonald/quantity-math-js@1.2.0";
// Or:
const { Quantity } = await import('https://esm.sh/jsr/@bradenmacdonald/quantity-math-js@1.0.1');
const { Quantity } = await import('https://esm.sh/jsr/@bradenmacdonald/quantity-math-js@1.2.0');
</script>
```

Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@bradenmacdonald/quantity-math-js",
"lock": false,
"exports": "./mod.ts",
"version": "1.0.1",
"version": "1.2.0",
"fmt": {
"indentWidth": 4,
"lineWidth": 120,
Expand Down

0 comments on commit 14d1c97

Please sign in to comment.