Skip to content

Commit

Permalink
Merge pull request #1 from firefliesai/feature-sc-62335-create-firefl…
Browse files Browse the repository at this point in the history
…ies-llm-sdk

chore: add publish-packages
  • Loading branch information
hoangvvo authored Nov 8, 2024
2 parents 10bbe11 + f988bbe commit a3f749e
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Package to npmjs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com/"
- run: cp .npmrc ./javascript/.npmrc
- run: npm ci
- run: npm run build
working-directory: javascript
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: javascript
2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "module",
"name": "@hoangvvo/llm-sdk",
"name": "@firefliesai/llm-sdk",
"version": "0.1.5",
"description": "A unified LLM SDK",
"scripts": {
Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "llm-sdk",
"type": "module",
"workspaces": [
"javascript"
Expand Down

0 comments on commit a3f749e

Please sign in to comment.