diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index fd87ca4..2b7e6c5 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -22,17 +22,4 @@ jobs: run: deno test - name: Check formatting run: deno fmt --check - if: ${{ !contains(matrix.os, 'windows') }} - publish: - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - steps: - - uses: actions/checkout@v4 - - name: Setup Deno - uses: denoland/setup-deno@v1 - with: - deno-version: 1.x - - name: Publish package - run: deno publish \ No newline at end of file + if: ${{ !contains(matrix.os, 'windows') }} \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d29965c --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,18 @@ +name: Publish to JSR + +on: [release] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Setup Deno + uses: denoland/setup-deno@v1 + with: + deno-version: 1.x + - name: Publish package + run: deno publish \ No newline at end of file