Skip to content

Commit 05b14ac

Browse files
committed
Switch to pnpm
1 parent 9e1b308 commit 05b14ac

File tree

5 files changed

+42
-15
lines changed

5 files changed

+42
-15
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Setup Node'
2+
description: 'Sets up Node.js with caching and pnpm'
3+
4+
inputs:
5+
node-version:
6+
description: 'Node version to use'
7+
required: false
8+
default: '22'
9+
10+
runs:
11+
using: "composite"
12+
steps:
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: ${{ inputs.node-version }}
16+
cache: 'pnpm'
17+
18+
- name: Enable corepack
19+
shell: bash
20+
run: corepack enable
21+
22+
- name: Install Dependencies
23+
shell: bash
24+
run: |
25+
corepack enable
26+
pnpm install --frozen-lockfile

.github/actions/setup-node/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Retaining for backwards compaitbility as we move to pnpm with actions/setup-node-pnpm
12
name: 'Setup Node'
23
description: 'Sets up Node.js with caching and yarn'
34

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
2727
steps:
2828
- name: Checkout Code
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030

3131
- name: Setup Docker
3232
uses: wedgworth/actions/.github/actions/setup-docker@main

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
2727
steps:
2828
- name: Checkout Code
29-
uses: actions/checkout@v5
29+
uses: actions/checkout@v6
3030

3131
- name: Setup Heroku
3232
uses: wedgworth/actions/.github/actions/setup-heroku@main

.github/workflows/test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ on:
2222
required: true
2323

2424
env:
25-
PYTHON_VERSION: "3.13"
26-
NODE_VERSION: "20"
25+
PYTHON_VERSION: "3.14"
26+
NODE_VERSION: "22"
2727

2828
jobs:
2929
lint-python:
@@ -33,8 +33,8 @@ jobs:
3333
- uses: styfle/cancel-workflow-action@0.12.1
3434
with:
3535
access_token: ${{ github.token }}
36-
- uses: actions/checkout@v5
37-
- uses: actions/setup-python@v5
36+
- uses: actions/checkout@v6
37+
- uses: actions/setup-python@v6
3838
with:
3939
python-version: ${{ env.PYTHON_VERSION }}
4040
- name: Lint
@@ -47,8 +47,8 @@ jobs:
4747
runs-on: namespace-profile-default
4848
if: inputs.has-frontend
4949
steps:
50-
- uses: actions/checkout@v4
51-
- uses: wedgworth/actions/.github/actions/setup-node@main
50+
- uses: actions/checkout@v6
51+
- uses: wedgworth/actions/.github/actions/setup-node-pnpm@main
5252
with:
5353
node-version: ${{ env.NODE_VERSION }}
5454

@@ -62,14 +62,14 @@ jobs:
6262
with:
6363
access_token: ${{ github.token }}
6464

65-
- uses: actions/checkout@v5
65+
- uses: actions/checkout@v6
6666

67-
- uses: wedgworth/actions/.github/actions/setup-node@main
67+
- uses: wedgworth/actions/.github/actions/setup-node-pnpm@main
6868
with:
6969
node-version: ${{ env.NODE_VERSION }}
7070

7171
- name: Test
72-
run: yarn test
72+
run: pnpm test
7373

7474
- uses: wedgworth/actions/.github/actions/report-coverage@main
7575
with:
@@ -87,16 +87,16 @@ jobs:
8787
with:
8888
access_token: ${{ github.token }}
8989

90-
- uses: actions/checkout@v5
90+
- uses: actions/checkout@v6
9191

92-
- uses: wedgworth/actions/.github/actions/setup-node@main
92+
- uses: wedgworth/actions/.github/actions/setup-node-pnpm@main
9393
with:
9494
node-version: ${{ env.NODE_VERSION }}
9595

9696
- name: Build and Upload Bundle
9797
env:
9898
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
99-
run: yarn build
99+
run: pnpm build
100100

101101
build-and-push-images:
102102
name: Build, Test and Push Images
@@ -134,7 +134,7 @@ jobs:
134134
tags: ${{ steps.meta.outputs.tags }}
135135
version: ${{ steps.meta.outputs.version }}
136136
steps:
137-
- uses: actions/checkout@v5
137+
- uses: actions/checkout@v6
138138

139139
- uses: wedgworth/actions/.github/actions/setup-docker@main
140140
with:

0 commit comments

Comments
 (0)