Skip to content

Release 5.1.3 version #4

Release 5.1.3 version

Release 5.1.3 version #4

Workflow file for this run

name: Publish to JSR
on:
push:
tags:
- '*'
permissions:
contents: read
id-token: write
jobs:
jsr:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Check tag version
id: check
run: |
TAG=${GITHUB_REF#refs/tags/}
MAJOR=$(echo $TAG | cut -d. -f1)
if [[ "$MAJOR" =~ ^[0-9]+$ && "$MAJOR" -gt 3 ]]; then
echo "version_ok=true" >> $GITHUB_OUTPUT
fi
shell: bash
- name: Publish to JSR
if: steps.check.outputs.version_ok == 'true'
run: npx jsr publish