Skip to content

Commit

Permalink
ci: add .github/workflows/publish.yml to publish deno-redis to JSR (
Browse files Browse the repository at this point in the history
#467)

Towards #438
  • Loading branch information
uki00a authored Dec 3, 2024
1 parent f501ec3 commit d43e6db
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to JSR
on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Get Deno version
run: |
echo "DENO_VERSION=$(cat .denov)" >> $GITHUB_ENV
- name: Set up Deno ${{ env.DENO_VERSION }}
uses: denoland/setup-deno@main
with:
deno-version: ${{ env.DENO_VERSION }}
- name: Publish packages
run:
deno publish

0 comments on commit d43e6db

Please sign in to comment.