Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/publish-gpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Publish to GitHub Packages

on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag to publish (e.g., @cometloop/safe@0.1.0)'
required: true
type: string

jobs:
publish-gpr:
Expand All @@ -14,7 +19,7 @@ jobs:
- name: Parse tag
id: parse
run: |
TAG="${{ github.ref_name }}"
TAG="${{ inputs.tag }}"
# Extract package name and version from tag like @cometloop/safe@0.1.0
NAME="${TAG%@*}"
VERSION="${TAG##*@}"
Expand All @@ -25,6 +30,8 @@ jobs:
echo "Publishing ${NAME}@${VERSION} from ${DIR}"

- uses: actions/checkout@v4
with:
ref: ${{ inputs.tag }}

- uses: pnpm/action-setup@v4

Expand Down