Skip to content

Commit

Permalink
chore: set up publish-on-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Nov 12, 2024
1 parent 7bc751c commit 8c48835
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -41,15 +42,18 @@ jobs:
- name: Lint
run: deno lint

publish-dry-run:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
permissions:
contents: read
id-token: write
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v2

- name: Publish (dry run)
run: deno publish --dry-run
- name: Publish on tag
run: deno run -A jsr:@david/[email protected]

0 comments on commit 8c48835

Please sign in to comment.