Skip to content

Commit

Permalink
Publish to JSR
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Jun 11, 2024
1 parent e1851bd commit 2a02bae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-latest
name: Publish package

permissions:
contents: read
id-token: write

services:
nvector-test-api:
image: ghcr.io/ezzatron/nvector-test-api
Expand Down Expand Up @@ -37,6 +41,8 @@ jobs:

- name: Publish package
if: success()
run: npm publish --access public
run: |
npm publish --access public
npx --yes jsr publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

_Functions for performing geographical position calculations using n-vectors_

[![Current version][badge-version-image]][badge-version-link]
[![Current NPM version][badge-npm-version-image]][badge-npm-version-link]
[![Current JSR version][badge-jsr-version-image]][badge-jsr-version-link]
[![Build status][badge-build-image]][badge-build-link]
[![Test coverage][badge-coverage-image]][badge-coverage-link]

Expand All @@ -13,9 +14,12 @@ _Functions for performing geographical position calculations using n-vectors_
[badge-coverage-image]:
https://img.shields.io/codecov/c/gh/ezzatron/nvector-js?style=for-the-badge
[badge-coverage-link]: https://codecov.io/gh/ezzatron/nvector-js
[badge-version-image]:
[badge-jsr-version-image]:
https://jsr.io/badges/@ezzatron/nvector?label=@ezzatron/nvector&style=for-the-badge
[badge-jsr-version-link]: https://jsr.io/@ezzatron/nvector
[badge-npm-version-image]:
https://img.shields.io/npm/v/nvector-geodesy?label=nvector-geodesy&logo=npm&style=for-the-badge
[badge-version-link]: https://npmjs.com/package/nvector-geodesy
[badge-npm-version-link]: https://npmjs.com/package/nvector-geodesy

This library is a lightweight (<2kB), dependency-free port of the [Matlab
n-vector library] by [Kenneth Gade]. All original functions are included,
Expand Down
5 changes: 5 additions & 0 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "@ezzatron/nvector",
"version": "0.0.0",
"exports": "./src/index.ts"
}

0 comments on commit 2a02bae

Please sign in to comment.