From e3a7bb8dc1765e5a1732d5acc521f7009da3996d Mon Sep 17 00:00:00 2001 From: Ricardo Chavarria Date: Tue, 30 Dec 2025 16:33:56 -0600 Subject: [PATCH] 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 --- .github/workflows/adev-staging-deploy.yml | 6 ++++++ .github/workflows/ci.yml | 4 +++- .node-version | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .node-version diff --git a/.github/workflows/adev-staging-deploy.yml b/.github/workflows/adev-staging-deploy.yml index c151dda..684d6d0 100644 --- a/.github/workflows/adev-staging-deploy.yml +++ b/.github/workflows/adev-staging-deploy.yml @@ -18,6 +18,12 @@ jobs: submodules: true - name: Setup Node JS uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version-file: '.node-version' + - name: Setup pnpm + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 + with: + version: 10.17.1 - name: Setup Bazel uses: bazel-contrib/setup-bazel@4fd964a13a440a8aeb0be47350db2fc640f19ca8 # 0.15.0 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1672a73..dde8b72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,8 +15,10 @@ jobs: submodules: true - name: Setup Node JS uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 + with: + node-version-file: '.node-version' - name: Setup pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # 4.1.0 with: version: 10.17.1 - name: Setup Bazel diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..d135def --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +22.12.0 \ No newline at end of file