File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' v*'
7+ workflow_dispatch :
8+ inputs :
9+ version :
10+ description : ' Version to release (e.g., 0.3.0)'
11+ required : true
12+ type : string
713
814env :
915 NODE_VERSION : ' 18.x'
@@ -22,10 +28,14 @@ jobs:
2228 with :
2329 fetch-depth : 0
2430
25- - name : Get version from tag
31+ - name : Get version from tag or input
2632 id : get_version
2733 run : |
28- VERSION=${GITHUB_REF#refs/tags/v}
34+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
35+ VERSION="${{ github.event.inputs.version }}"
36+ else
37+ VERSION=${GITHUB_REF#refs/tags/v}
38+ fi
2939 echo "version=${VERSION}" >> $GITHUB_OUTPUT
3040 echo "Detected version: ${VERSION}"
3141
6676 run : pnpm install --frozen-lockfile
6777
6878 - name : Run linting
69- run : pnpm exec eslint . --ext .ts,.js
79+ run : pnpm exec eslint "**/*.{ts,js}" --ignore-path .gitignore
7080
7181 - name : Check formatting
7282 run : pnpm exec prettier --check .
You can’t perform that action at this time.
0 commit comments