Skip to content

Commit d9637eb

Browse files
authored
fix: pub (#17)
1 parent ad82ba9 commit d9637eb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/publish-gpr.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Publish to GitHub Packages
22

33
on:
44
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
510

611
jobs:
712
publish-gpr:
@@ -14,7 +19,7 @@ jobs:
1419
- name: Parse tag
1520
id: parse
1621
run: |
17-
TAG="${{ github.ref_name }}"
22+
TAG="${{ inputs.tag }}"
1823
# Extract package name and version from tag like @cometloop/safe@0.1.0
1924
NAME="${TAG%@*}"
2025
VERSION="${TAG##*@}"
@@ -25,6 +30,8 @@ jobs:
2530
echo "Publishing ${NAME}@${VERSION} from ${DIR}"
2631
2732
- uses: actions/checkout@v4
33+
with:
34+
ref: ${{ inputs.tag }}
2835

2936
- uses: pnpm/action-setup@v4
3037

0 commit comments

Comments
 (0)