We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1e6b0 commit c0b7b0cCopy full SHA for c0b7b0c
.github/workflows/jsr.yml
@@ -12,5 +12,15 @@ jobs:
12
steps:
13
- name: Checkout the repository
14
uses: actions/checkout@v4
15
+ - name: Check tag version
16
+ id: check
17
+ run: |
18
+ TAG=${GITHUB_REF#refs/tags/}
19
+ MAJOR=$(echo $TAG | cut -d. -f1)
20
+ if [[ "$MAJOR" =~ ^[0-9]+$ && "$MAJOR" -gt 3 ]]; then
21
+ echo "version_ok=true" >> $GITHUB_OUTPUT
22
+ fi
23
+ shell: bash
24
- name: Publish to JSR
25
+ if: steps.check.outputs.version_ok == 'true'
26
run: npx jsr publish
0 commit comments