Skip to content

Commit 63d7e64

Browse files
committed
fix(ci): fix pnpm setup for staging deploy
- Install pnpm in GitHub Actions - Add node-version file - Enable pnpm cache for faster CI builds - Ensure build and deploy to staging works correctly
1 parent 9547fcf commit 63d7e64

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/adev-staging-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
submodules: true
1919
- name: Setup Node JS
2020
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
21+
with:
22+
node-version-file: '.node-version'
23+
cache: pnpm
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2126
- name: Setup Bazel
2227
uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
2328
with:

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ jobs:
1313
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414
with:
1515
submodules: true
16-
- name: Setup Node JS
17-
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
1816
- name: Setup pnpm
19-
uses: pnpm/action-setup@v4
17+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2018
with:
2119
version: 10.17.1
20+
- name: Setup Node JS
21+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22+
with:
23+
node-version-file: '.node-version'
24+
cache: pnpm
2225
- name: Setup Bazel
2326
uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
2427
with:

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.12.0

0 commit comments

Comments
 (0)