Skip to content

Commit a5562d2

Browse files
authored
chore(package-manager): npm -> pnpm (#615)
1 parent b9043c4 commit a5562d2

File tree

23 files changed

+16533
-33768
lines changed

23 files changed

+16533
-33768
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0
19+
- uses: pnpm/action-setup@v2
20+
with:
21+
version: 10
1922
- uses: actions/setup-node@v3
2023
with:
21-
cache: "npm"
24+
cache: "pnpm"
2225
node-version-file: ".nvmrc"
2326
- uses: nrwl/nx-set-shas@v3
24-
- run: npm ci
25-
- run: npx nx run-many --targets=lint
26-
- run: npx prettier --check .
27+
- run: pnpm install --frozen-lockfile
28+
- run: pnpm nx run-many --targets=lint
29+
- run: pnpm prettier --check .
2730

2831
build-and-test:
2932
name: Build and test
@@ -46,14 +49,16 @@ jobs:
4649
- uses: actions/checkout@v4
4750
with:
4851
fetch-depth: 0
52+
- uses: pnpm/action-setup@v2
53+
with:
54+
version: 10
4955
- uses: actions/setup-node@v3
5056
with:
51-
cache: "npm"
57+
cache: "pnpm"
5258
node-version-file: ".nvmrc"
53-
5459
- uses: nrwl/nx-set-shas@v3
55-
- run: npm ci
60+
- run: pnpm install --frozen-lockfile
5661
- name: Build
57-
run: npx nx affected --target=build --parallel=3
62+
run: pnpm nx affected --target=build --parallel=3
5863
- name: Test
59-
run: npx nx affected --target=test --parallel=3 --ci --code-coverage
64+
run: pnpm nx affected --target=test --parallel=3 --ci --code-coverage

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ jobs:
1515
fetch-depth: 0
1616
ref: ${{ github.ref }}
1717

18+
- uses: pnpm/action-setup@v2
19+
with:
20+
version: 10
1821
- uses: actions/setup-node@v3
1922
with:
20-
cache: "npm"
23+
cache: "pnpm"
2124
node-version-file: ".nvmrc"
22-
- run: npm ci
25+
- run: pnpm install --frozen-lockfile
2326
- name: Build
24-
run: npx nx run-many --target=build --parallel=3
27+
run: pnpm nx run-many --target=build --parallel=3
2528
- name: Git Identity
2629
run: |
2730
git config --global user.name 'github-actions[bot]'
@@ -30,7 +33,7 @@ jobs:
3033
env:
3134
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
3235
- name: Create Version
33-
run: npx lerna version --no-private --conventional-commits --yes
36+
run: pnpm lerna version --no-private --conventional-commits --yes
3437
- name: Set Current Version
3538
run: |
3639
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
@@ -48,6 +51,6 @@ jobs:
4851
run: |
4952
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
5053
- name: Build for Release
51-
run: npx nx run-many --target=build --parallel=3
54+
run: pnpm nx run-many --target=build --parallel=3
5255
- name: Publish
53-
run: npx lerna publish --no-private from-git --yes
56+
run: pnpm lerna publish --no-private from-git --yes

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pnpm-lock.yaml
2+
pnpm-workspace.yaml

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Please refer to our [Contributing Guide](https://traceloop.com/docs/openllmetry/
99
To release a new version of the package, run (make sure you have access to the `@traceloop` npm organization):
1010

1111
```bash
12-
nx run-many --targets=build
13-
npx lerna publish --no-private
12+
pnpm nx run-many --targets=build
13+
pnpm lerna publish --no-private
1414
```

0 commit comments

Comments
 (0)