From 6ea67f686e82d97b5015e5e204ebb9d1d66a6b96 Mon Sep 17 00:00:00 2001 From: Phil Leggetter Date: Tue, 7 May 2024 07:29:54 +0100 Subject: [PATCH] chore: add JSR publishing --- .github/workflows/ci.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c348128..e086b29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Compile run: yarn && yarn test - publish: + publish-npm: needs: [ compile, test ] if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') runs-on: ubuntu-latest @@ -52,4 +52,19 @@ jobs: npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} npm publish --access public env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + publish-jsr: + needs: [ compile, test ] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Publish package + run: npx jsr publish