Skip to content

Commit

Permalink
ci: move publishing to a separate action
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Mar 1, 2024
1 parent 50ced21 commit 7b6072b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
if: ${{ !contains(matrix.os, 'windows') }}
18 changes: 18 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7b6072b

Please sign in to comment.