Skip to content

Commit 6be1468

Browse files
ricardochlSplaktar
authored andcommitted
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 6be1468

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ 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+
- name: Setup pnpm
24+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
25+
with:
26+
version: 10.17.1
2127
- name: Setup Bazel
2228
uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0
2329
with:

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ jobs:
1515
submodules: true
1616
- name: Setup Node JS
1717
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
18+
with:
19+
node-version-file: '.node-version'
1820
- name: Setup pnpm
19-
uses: pnpm/action-setup@v4
21+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0
2022
with:
2123
version: 10.17.1
2224
- name: Setup Bazel

.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)