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:
Daniel Avila 2023-07-30 11:37:03 -04:00 committed by Danny Avila
parent 545342bbcb
commit b5aadc4b6d
2 changed files with 37 additions and 3 deletions

34
.github/workflows/data-provider.yml vendored Normal file
View 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}}

View file

@ -1,6 +1,6 @@
{
"name": "librechat-data-provider",
"version": "0.1.1",
"version": "0.1.2",
"description": "data services for librechat apps",
"main": "dist/index.js",
"module": "dist/index.es.js",
@ -15,12 +15,12 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/danny-avila/librechat-data-provider.git"
"url": "git+https://github.com/danny-avila/LibreChat.git"
},
"author": "",
"license": "ISC",
"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",
"dependencies": {