We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad82ba9 commit d9637ebCopy full SHA for d9637eb
1 file changed
.github/workflows/publish-gpr.yml
@@ -2,6 +2,11 @@ name: Publish to GitHub Packages
2
3
on:
4
workflow_dispatch:
5
+ inputs:
6
+ tag:
7
+ description: 'Release tag to publish (e.g., @cometloop/safe@0.1.0)'
8
+ required: true
9
+ type: string
10
11
jobs:
12
publish-gpr:
@@ -14,7 +19,7 @@ jobs:
14
19
- name: Parse tag
15
20
id: parse
16
21
run: |
17
- TAG="${{ github.ref_name }}"
22
+ TAG="${{ inputs.tag }}"
18
23
# Extract package name and version from tag like @cometloop/safe@0.1.0
24
NAME="${TAG%@*}"
25
VERSION="${TAG##*@}"
@@ -25,6 +30,8 @@ jobs:
30
echo "Publishing ${NAME}@${VERSION} from ${DIR}"
26
31
27
32
- uses: actions/checkout@v4
33
+ with:
34
+ ref: ${{ inputs.tag }}
28
35
29
36
- uses: pnpm/action-setup@v4
37
0 commit comments