Skip to content

Commit

Permalink
🔧 chore: Automate JSR publish step via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
masonmark committed Dec 22, 2024
1 parent 0145fe8 commit b6d1b91
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on:
push:
branches: ["*"]

jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Test
run: deno test --allow-read --allow-write

## The --allow-dirty is needed here because in CI the deno.lock file may be modified
- name: JSR check
run: deno publish --dry-run --allow-dirty
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish

0 comments on commit b6d1b91

Please sign in to comment.