Skip to content

Commit 88620e8

Browse files
authored
fix: pin package release source (#509)
1 parent a408cd7 commit 88620e8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
description: Publish to npm (leave unchecked for a build + pack dry run)
2424
type: boolean
2525
default: false
26+
source-ref:
27+
description: Commit or ref to build and publish (defaults to the dispatched commit)
28+
type: string
29+
required: false
30+
default: ""
2631

2732
concurrency:
2833
group: publish-${{ github.ref }}
@@ -43,6 +48,7 @@ jobs:
4348
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4449
with:
4550
persist-credentials: false
51+
ref: ${{ inputs.source-ref || github.sha }}
4652

4753
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
4854
with:
@@ -97,6 +103,7 @@ jobs:
97103
uses: stella/.github/.github/workflows/npm-independent-release.yml@aa71261ae4ac03405195b3470b16b0bf5669be67 # v1.4.0
98104
with:
99105
artifact-pattern: npm-tarball-*
106+
source-ref: ${{ inputs.source-ref || github.sha }}
100107
package-files: |
101108
packages/docx-core/package.json
102109
packages/core/package.json

0 commit comments

Comments
 (0)