Skip to content

Commit c15f643

Browse files
committed
chore: Workaround for broken corepack
1 parent 2cbf5c0 commit c15f643

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
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: Setup Node, and install Pnpm
3+
inputs:
4+
node-version:
5+
required: false
6+
description: The version of Node to use.
7+
default: '22.x'
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- name: Setup pnpm
12+
uses: pnpm/action-setup@v4
13+
14+
- name: Use Node.js ${{ inputs.node-version }}
15+
uses: actions/setup-node@v4
16+
with:
17+
registry-url: 'https://registry.npmjs.org'
18+
node-version: ${{ inputs.node-version }}
19+
cache: 'pnpm'
20+
21+
- name: Enable Corepack
22+
run: |
23+
npm i -g --force corepack
24+
corepack enable
25+
corepack install
26+
shell: bash

.github/actions/setup/action.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: setup_node
2-
description: Setup Node, and install Pnpm
2+
description: Setup Node, install Pnpm, and install dependencies.
33
inputs:
44
node-version:
55
required: false
@@ -20,6 +20,7 @@ runs:
2020

2121
- name: Enable Corepack
2222
run: |
23+
npm i -g --force corepack
2324
corepack enable
2425
corepack install
2526
shell: bash

0 commit comments

Comments
 (0)