Skip to content

Publish to JSR

Publish to JSR #1

Workflow file for this run

name: Publish to JSR
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
version:
description: "Version to publish (e.g., 1.0.0)"
required: false
permissions:
contents: read
id-token: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Verify project structure
run: |
echo "Checking project files..."
ls -la
deno task test || echo "Tests failed but continuing..."
- name: Publish to JSR
run: |
echo "Publishing @pedromdominguez/genesis-trace to JSR..."
deno publish --allow-dirty
- name: Create release notes
if: startsWith(github.ref, 'refs/tags/')
run: |
TAG=${GITHUB_REF#refs/tags/}
echo "## Release $TAG" >> $GITHUB_STEP_SUMMARY
echo "✅ Published @pedromdominguez/genesis-trace to JSR" >> $GITHUB_STEP_SUMMARY
echo "📦 Version: $TAG" >> $GITHUB_STEP_SUMMARY
echo "🔗 View on JSR: https://jsr.io/@pedromdominguez/genesis-trace" >> $GITHUB_STEP_SUMMARY