Skip to content

Commit e1be2a7

Browse files
Pnpm migration (#4566)
* Transpiling parser pkg * Move from yarn to pnpm package manager * React packages version fixed * Github actions and docs migration * Moved the setup-pnpm action to use the commit id instead of version * Synced the lock file * Build failure fixed * Fixed missing dependencies * Type check and lint errors fixed * Changed the workflow order to run typecheck before lint as that shows more useful errors earlier * Storybook build fixed * Use version from env vars Co-authored-by: Maxime Brunet <[email protected]> * Updated github workflows to use pnpm version from env vars * Lockfile synced --------- Co-authored-by: Maxime Brunet <[email protected]>
1 parent 28b15f3 commit e1be2a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+26840
-25479
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/pkg/symbolizer @parca-dev/agent-maintainers
2020

2121
package.json
22-
yarn.lock
22+
pnpm-lock.yaml
2323
/go.mod
2424
/go.sum
2525
Dockerfile*

.github/workflows/build-test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ env:
2222
QEMU_VERSION: 7.0.0-7
2323
# renovate: datasource=docker depName=docker.io/buildpack-deps versioning=ubuntu
2424
BUILDPACK_DEPS_VERSION: '22.04'
25+
# renovate: datasource=npm depName=pnpm versioning=npm
26+
PNPM_VERSION: '9.0.6'
2527

2628
jobs:
2729
build-and-test-multi-arch:
@@ -61,13 +63,17 @@ jobs:
6163
with:
6264
go-version-file: .go-version
6365

66+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
67+
with:
68+
version: ${{ env.PNPM_VERSION }}
69+
6470
- name: Set up Node.js
6571
if: ${{ steps.skip-check.outputs.should_skip != 'true' && matrix.arch == 'amd64' }}
6672
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
6773
with:
6874
node-version-file: .node-version
69-
cache: 'yarn'
70-
cache-dependency-path: ui/yarn.lock
75+
cache: 'pnpm'
76+
cache-dependency-path: ui/pnpm-lock.yaml
7177

7278
- name: Build
7379
if: ${{ steps.skip-check.outputs.should_skip != 'true' && matrix.arch == 'amd64' }}

.github/workflows/chromatic.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
2222
cancel-in-progress: true
2323

24+
env:
25+
# renovate: datasource=npm depName=pnpm versioning=npm
26+
PNPM_VERSION: '9.0.6'
27+
2428
# List of jobs
2529
jobs:
2630
skip-check:
@@ -57,13 +61,17 @@ jobs:
5761
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
5862
with:
5963
fetch-depth: 0 # Required to retrieve git history
64+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
65+
with:
66+
version: ${{ env.PNPM_VERSION }}
6067
- name: Set up Node.js
6168
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
6269
with:
6370
node-version-file: .node-version
64-
cache: 'yarn'
71+
cache: 'pnpm'
72+
cache-dependency-path: ui/pnpm-lock.yaml
6573
- name: Install dependencies and build app
66-
run: yarn install --frozen-lockfile --prefer-offline && yarn build
74+
run: pnpm install --frozen-lockfile --prefer-offline && pnpm run build
6775
# 👇 Adds Chromatic as a step in the workflow
6876
- name: Publish to Chromatic
6977
uses: chromaui/action@3dcb6636a4f8eed347ef6214f5d74d2b5fee45e4 # v11.3.0

.github/workflows/codeql-analysis-go.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ concurrency:
1919
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
2020
cancel-in-progress: true
2121

22+
env:
23+
# renovate: datasource=npm depName=pnpm versioning=npm
24+
PNPM_VERSION: '9.0.6'
25+
2226
jobs:
2327
skip-check:
2428
name: Skip check
@@ -69,12 +73,16 @@ jobs:
6973
with:
7074
go-version-file: .go-version
7175

76+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
77+
with:
78+
version: ${{ env.PNPM_VERSION }}
79+
7280
- name: Set up Node.js
7381
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
7482
with:
7583
node-version-file: .node-version
76-
cache: 'yarn'
77-
cache-dependency-path: ui/yarn.lock
84+
cache: 'pnpm'
85+
cache-dependency-path: ui/pnpm-lock.yaml
7886

7987
- name: Initialize CodeQL
8088
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3

.github/workflows/container.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
env:
2121
# renovate: datasource=go depName=github.com/goreleaser/goreleaser
2222
GORELEASER_VERSION: v1.25.1
23+
# renovate: datasource=npm depName=pnpm versioning=npm
24+
PNPM_VERSION: '9.0.6'
2325

2426
jobs:
2527
skip-check:
@@ -74,12 +76,16 @@ jobs:
7476
with:
7577
go-version-file: .go-version
7678

79+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
80+
with:
81+
version: ${{ env.PNPM_VERSION }}
82+
7783
- name: Set up Node.js
7884
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
7985
with:
8086
node-version-file: .node-version
81-
cache: 'yarn'
82-
cache-dependency-path: ui/yarn.lock
87+
cache: 'pnpm'
88+
cache-dependency-path: ui/pnpm-lock.yaml
8389

8490
- name: Set Tag
8591
run: |

.github/workflows/docs.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ concurrency:
1717
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
1818
cancel-in-progress: true
1919

20+
env:
21+
# renovate: datasource=npm depName=pnpm versioning=npm
22+
PNPM_VERSION: '9.0.6'
23+
2024
jobs:
2125
skip-check:
2226
name: Skip check
@@ -58,12 +62,16 @@ jobs:
5862
with:
5963
go-version-file: .go-version
6064

65+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
66+
with:
67+
version: ${{ env.PNPM_VERSION }}
68+
6169
- name: Set up Node.js
6270
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
6371
with:
6472
node-version-file: .node-version
65-
cache: 'yarn'
66-
cache-dependency-path: ui/yarn.lock
73+
cache: 'pnpm'
74+
cache-dependency-path: ui/pnpm-lock.yaml
6775

6876
- name: Docs check
6977
run: |

.github/workflows/go-lint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ concurrency:
1818
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
1919
cancel-in-progress: true
2020

21+
env:
22+
# renovate: datasource=npm depName=pnpm versioning=npm
23+
PNPM_VERSION: '9.0.6'
24+
2125
jobs:
2226
skip-check:
2327
name: Skip check
@@ -63,12 +67,16 @@ jobs:
6367
run: |
6468
./env.sh
6569
70+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
71+
with:
72+
version: ${{ env.PNPM_VERSION }}
73+
6674
- name: Set up Node.js
6775
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
6876
with:
6977
node-version-file: .node-version
70-
cache: 'yarn'
71-
cache-dependency-path: ui/yarn.lock
78+
cache: 'pnpm'
79+
cache-dependency-path: ui/pnpm-lock.yaml
7280

7381
- name: Build UI
7482
run: make ui/build

.github/workflows/release-dry-run.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
env:
2121
# renovate: datasource=go depName=github.com/goreleaser/goreleaser
2222
GORELEASER_VERSION: v1.25.1
23+
# renovate: datasource=npm depName=pnpm versioning=npm
24+
PNPM_VERSION: '9.0.6'
2325

2426
permissions:
2527
contents: write
@@ -81,12 +83,16 @@ jobs:
8183
with:
8284
go-version-file: .go-version
8385

86+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
87+
with:
88+
version: ${{ env.PNPM_VERSION }}
89+
8490
- name: Set up Node.js
8591
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
8692
with:
8793
node-version-file: .node-version
88-
cache: 'yarn'
89-
cache-dependency-path: ui/yarn.lock
94+
cache: 'pnpm'
95+
cache-dependency-path: ui/pnpm-lock.yaml
9096

9197
- name: Set up Snapcraft
9298
run: |

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ concurrency:
1212
env:
1313
# renovate: datasource=go depName=github.com/goreleaser/goreleaser
1414
GORELEASER_VERSION: v1.25.1
15+
# renovate: datasource=npm depName=pnpm versioning=npm
16+
PNPM_VERSION: '9.0.6'
1517

1618
permissions:
1719
contents: write
@@ -37,12 +39,16 @@ jobs:
3739
with:
3840
go-version-file: .go-version
3941

42+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
43+
with:
44+
version: ${{ env.PNPM_VERSION }}
45+
4046
- name: Set up Node.js
4147
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
4248
with:
4349
node-version-file: .node-version
44-
cache: 'yarn'
45-
cache-dependency-path: ui/yarn.lock
50+
cache: 'pnpm'
51+
cache-dependency-path: ui/pnpm-lock.yaml
4652

4753
- name: Set up Snapcraft
4854
run: |

.github/workflows/snap.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
env:
2121
# renovate: datasource=go depName=github.com/goreleaser/goreleaser
2222
GORELEASER_VERSION: v1.25.1
23+
# renovate: datasource=npm depName=pnpm versioning=npm
24+
PNPM_VERSION: '9.0.6'
2325

2426
permissions:
2527
contents: write
@@ -84,12 +86,16 @@ jobs:
8486
check-latest: true
8587
cache: true
8688

89+
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
90+
with:
91+
version: ${{ env.PNPM_VERSION }}
92+
8793
- name: Set up Node.js
8894
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
8995
with:
9096
node-version-file: .node-version
91-
cache: 'yarn'
92-
cache-dependency-path: ui/yarn.lock
97+
cache: 'pnpm'
98+
cache-dependency-path: ui/pnpm-lock.yaml
9399

94100
- name: Set up Snapcraft
95101
run: |

0 commit comments

Comments
 (0)