-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.03 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 🚀 Release
on:
push:
branches:
- main
workflow_dispatch:
jobs:
tagpr:
name: 🏷️ Release a New Version
permissions:
contents: write
pull-requests: write
runs-on: Ubuntu-Latest
outputs:
tag: ${{ steps.tagpr.outputs.tag }}
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 🏷️ Release a New Version
id: tagpr
uses: Songmu/tagpr@3dca11e7c0d68637ee212ddd35acc3d30a7403a4 # v1.5.0
with:
config: .github/tagpr.ini
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
name: 📦 Publish to JSR
permissions:
contents: read
id-token: write
needs: tagpr
if: ${{ needs.tagpr.outputs.tag != '' }}
runs-on: Ubuntu-Latest
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 📦 Publish to JSR
run: npx jsr publish