Skip to content

Release v1.2.2 (#74) #9

Release v1.2.2 (#74)

Release v1.2.2 (#74) #9

Workflow file for this run

name: πŸš€ Release
on:
push:
branches:
- main
paths:
- deno.json
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
Release:
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- name: πŸ” Check the Version
id: version
run: |
version="$(jq -r '.version' deno.json)"
tag="$(git tag -l | sort -V | tail -n 1)"
if [[ "v$version" != "$tag" ]]; then
echo "next=v$version" >> "$GITHUB_OUTPUT"
fi
- name: πŸš€ Release a New Version
if: ${{ steps.version.outputs.next != '' }}
run: gh release create "${{ steps.version.outputs.next }}" --generate-notes
env:
GH_TOKEN: ${{ github.token }}
- name: πŸ“¦ Publish to JSR
if: ${{ steps.version.outputs.next != '' }}
run: npx jsr publish