Skip to content

Commit 9e280a1

Browse files
committed
chore: manual release
1 parent 7decb03 commit 9e280a1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- 'master'
77
workflow_dispatch:
8+
inputs:
9+
release_tag:
10+
description: 'Existing git tag to publish to npm (e.g. v1.2.3)'
11+
required: false
12+
type: string
813

914
permissions:
1015
contents: write
@@ -13,6 +18,7 @@ permissions:
1318

1419
jobs:
1520
release-please:
21+
if: github.event_name != 'workflow_dispatch' || github.event.inputs.release_tag == ''
1622
runs-on: ubuntu-latest
1723
outputs:
1824
release_created: ${{ steps.release.outputs.release_created }}
@@ -27,6 +33,28 @@ jobs:
2733
with:
2834
token: ${{ secrets.BOT_TOKEN }}
2935

36+
manual-publish:
37+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.release_tag != ''
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
with:
43+
ref: ${{ github.event.inputs.release_tag }}
44+
fetch-depth: 0
45+
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: '24.x'
49+
registry-url: 'https://registry.npmjs.org'
50+
51+
- run: npm ci
52+
53+
- run: npm run build-all
54+
55+
- name: Publish to NPM
56+
run: npm publish --provenance --access public
57+
3058
publish-stable:
3159
needs: release-please
3260
# Use tag_name as the definitive indicator - if a tag exists, a release was created

0 commit comments

Comments
 (0)