Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace yarn with pnpm #113

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 11 additions & 17 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,23 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: '16.x'
- uses: actions/cache@v2
version: 8
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
path: |
~/.npm
~/.config/yarn/global
key: ${{ runner.os }}-node-server-api-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-server-api-

- name: Install Yarn
run: |
npm install -g yarn
yarn install
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install

- name: Build
run: yarn build
run: pnpm build

- name: Build Docs
run: yarn build-docs
run: pnpm build-docs

- name: Publish to npm
run: |
Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,23 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
node-version: '16.x'
- uses: actions/cache@v2
version: 8
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
path: |
~/.npm
~/.config/yarn/global
key: ${{ runner.os }}-node-server-api-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-server-api-

- name: Install Yarn
run: |
npm install -g yarn
yarn install
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install

- name: Lint
run: yarn lint
run: pnpm lint

- name: Prettier
run: yarn format:check
run: pnpm format:check

- name: Test
run: yarn test
run: pnpm test
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules/
protocol/
src/proto/
yarn.lock
pnpm-lock.json
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@

## Installation

## Pnpm

```
pnpm add livekit-server-sdk
```

### Yarn

```
Expand Down Expand Up @@ -142,7 +148,9 @@ app.post('/webhook-endpoint', (req, res) => {
```

<!--BEGIN_REPO_NAV-->

<br/><table>

<thead><tr><th colspan="2">LiveKit Ecosystem</th></tr></thead>
<tbody>
<tr><td>Client SDKs</td><td><a href="https://github.com/livekit/components-js">Components</a> · <a href="https://github.com/livekit/client-sdk-js">JavaScript</a> · <a href="https://github.com/livekit/client-sdk-swift">iOS/macOS</a> · <a href="https://github.com/livekit/client-sdk-android">Android</a> · <a href="https://github.com/livekit/client-sdk-flutter">Flutter</a> · <a href="https://github.com/livekit/client-sdk-react-native">React Native</a> · <a href="https://github.com/livekit/client-sdk-rust">Rust</a> · <a href="https://github.com/livekit/client-sdk-python">Python</a> · <a href="https://github.com/livekit/client-sdk-unity-web">Unity (web)</a> · <a href="https://github.com/livekit/client-sdk-unity">Unity (beta)</a></td></tr><tr></tr>
Expand Down
287 changes: 287 additions & 0 deletions examples/webhooks-http/pnpm-lock.yaml

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

Loading
Loading