Skip to content

Commit a2b7812

Browse files
committed
📦 ci: Update workflow to publish @librechat/data-schemas to NPM with manual trigger option
1 parent 88d2920 commit a2b7812

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎.github/workflows/data-schemas.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
name: Node.js Package
1+
name: Publish `@librechat/data-schemas` to NPM
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
88
- 'packages/data-schemas/package.json'
9+
workflow_dispatch:
10+
inputs:
11+
reason:
12+
description: 'Reason for manual trigger'
13+
required: false
14+
default: 'Manual publish requested'
915

1016
jobs:
1117
build:
@@ -31,4 +37,4 @@ jobs:
3137
- run: cd packages/data-schemas && npm run build
3238
- run: cd packages/data-schemas && npm publish --access=public
3339
env:
34-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)