mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
📦 ci: Update workflow to publish @librechat/data-schemas
to NPM with manual trigger option
This commit is contained in:
parent
88d2920b06
commit
a2b7812033
1 changed files with 8 additions and 2 deletions
10
.github/workflows/data-schemas.yml
vendored
10
.github/workflows/data-schemas.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Node.js Package
|
||||
name: Publish `@librechat/data-schemas` to NPM
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -6,6 +6,12 @@ on:
|
|||
- main
|
||||
paths:
|
||||
- 'packages/data-schemas/package.json'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
reason:
|
||||
description: 'Reason for manual trigger'
|
||||
required: false
|
||||
default: 'Manual publish requested'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -31,4 +37,4 @@ jobs:
|
|||
- run: cd packages/data-schemas && npm run build
|
||||
- run: cd packages/data-schemas && npm publish --access=public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
Add table
Add a link
Reference in a new issue