Skip to content

Commit

Permalink
fix: prettier errors (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonianb authored Apr 16, 2024
1 parent 3d9af83 commit ca361e1
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/apps/agentprotocol.ai/
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
cache-dependency-path: package-lock.json

- name: Install dependencies
run: npm ci

- name: Run CI script
run: npm run ci
37 changes: 37 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build JS SDK

on:
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- 'apps/agentprotocol.ai/**'

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
cache-dependency-path: package-lock.json

- name: Install dependencies
working-directory: ./apps/agentprotocol.ai/
run: npm ci

# - name: Lint
# working-directory: ./apps/agentprotocol.ai/
# run: npm run lint

- name: Build
working-directory: ./apps/agentprotocol.ai/
run: npm run build
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages/client/python/*
apps/agentprotocol.ai/*
5 changes: 2 additions & 3 deletions packages/sdk/js/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,8 @@ export const getArtifactPath = (
workspace: string,
artifact: Artifact
): string => {
const rootDir = path.isAbsolute(workspace)
? workspace
: path.join(process.cwd(), workspace)
const isAbsolute: boolean = path.isAbsolute(workspace)
const rootDir = isAbsolute ? workspace : path.join(process.cwd(), workspace)

return path.join(
rootDir,
Expand Down

0 comments on commit ca361e1

Please sign in to comment.