Skip to content

Commit

Permalink
📦 ci: Update workflow to publish @librechat/data-schemas to NPM wit…
Browse files Browse the repository at this point in the history
…h manual trigger option
  • Loading branch information
danny-avila committed Mar 7, 2025
1 parent 88d2920 commit a2b7812
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/data-schemas.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: Node.js Package
name: Publish `@librechat/data-schemas` to NPM

on:
push:
branches:
- main
paths:
- 'packages/data-schemas/package.json'
workflow_dispatch:
inputs:
reason:
description: 'Reason for manual trigger'
required: false
default: 'Manual publish requested'

jobs:
build:
Expand All @@ -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}}

0 comments on commit a2b7812

Please sign in to comment.