mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
feat(data-provider): add GitHub Actions workflow for building and publishing package
chore(data-provider): update package version to 0.1.2 chore(data-provider): update repository URL in package.json
This commit is contained in:
parent
545342bbcb
commit
b5aadc4b6d
2 changed files with 37 additions and 3 deletions
34
.github/workflows/data-provider.yml
vendored
Normal file
34
.github/workflows/data-provider.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Node.js Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'packages/data-provider/package.json'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
- run: cd packages/data-provider && npm ci
|
||||||
|
- run: cd packages/data-provider && npm run build
|
||||||
|
|
||||||
|
publish-npm:
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
- run: cd packages/data-provider && npm ci
|
||||||
|
- run: cd packages/data-provider && npm run build
|
||||||
|
- run: cd packages/data-provider && npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "librechat-data-provider",
|
"name": "librechat-data-provider",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"description": "data services for librechat apps",
|
"description": "data services for librechat apps",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/index.es.js",
|
"module": "dist/index.es.js",
|
||||||
|
|
@ -15,12 +15,12 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/danny-avila/librechat-data-provider.git"
|
"url": "git+https://github.com/danny-avila/LibreChat.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/danny-avila/librechat-data-provider/issues"
|
"url": "https://github.com/danny-avila/LibreChat/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/danny-avila/LibreChat#readme",
|
"homepage": "https://github.com/danny-avila/LibreChat#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue