Skip to content

Commit 227fd25

Browse files
authored
refactor: release by explicit commit not by workflow ref (#87)
1 parent 92e029d commit 227fd25

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/release-npm.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Release Full
33
on:
44
workflow_dispatch:
55
inputs:
6+
commit:
7+
required: true
8+
type: string
9+
description: "Full Commit SHA to release"
610
tag:
711
type: choice
812
description: "Release Npm Tag"
@@ -67,6 +71,7 @@ jobs:
6771
runner: ${{ matrix.array.runner }}
6872
test: false
6973
profile: "release"
74+
ref: ${{ inputs.commit }}
7075

7176
release:
7277
name: Release
@@ -84,6 +89,7 @@ jobs:
8489
with:
8590
# This makes Actions fetch only one branch to release
8691
fetch-depth: 1
92+
ref: ${{ inputs.commit }}
8793

8894
- name: Pnpm Setup
8995
uses: ./.github/actions/pnpm

.github/workflows/release-plz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31+
ref: ${{ inputs.commit }}
3132

3233
- uses: Boshen/setup-rust@main
3334
with:

0 commit comments

Comments
 (0)