Skip to content

Commit

Permalink
Replace yarn with pnpm (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Nov 10, 2023
1 parent f99d3b4 commit 341872d
Show file tree
Hide file tree
Showing 18 changed files with 14,459 additions and 9,846 deletions.
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

0 comments on commit 341872d

Please sign in to comment.