ci(release): Use tagpr to prepare releasing (#91) #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
jobs: | |
Release: | |
runs-on: Ubuntu-Latest | |
steps: | |
- name: π Checkout Repository | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: π·οΈ Release a New Version | |
id: tagpr | |
uses: Songmu/tagpr@591c6e0c988bccee7dda02bce1af7a3b2dc47065 # v1.4.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: π¦ Publish to JSR | |
if: ${{ steps.tagpr.outputs.tag != '' }} | |
run: npx jsr publish |