Skip to content

Commit 0fb9836

Browse files
committed
Combine all the windows things into a single step
1 parent cc44e75 commit 0fb9836

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/actions/src/init/action.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,16 @@ runs:
3434
run: corepack enable
3535
shell: bash
3636

37-
- name: Enable Corepack (Powershell)
37+
- name: Do Windows Things (Powershell)
3838
if: ${{ inputs.shell == 'pwsh' }}
39-
run: corepack enable --install-directory ~/corepack
40-
shell: ${{ inputs.shell }}
41-
42-
- name: Setup Aliases (Windows)
43-
if: ${{ inputs.shell == 'pwsh' }}
44-
shell: pwsh
4539
run: |
40+
New-Item -ItemType Directory -Force -Path ~/corepack
41+
corepack enable --install-directory ~/corepack
4642
dir ~/corepack
4743
corepack prepare [email protected] --activate
4844
Get-Command yarn | Select-Object -ExpandProperty Definition
4945
C:\npm\prefix\yarn.ps1 --version
46+
shell: ${{ inputs.shell }}
5047

5148
- name: Use Node.js 💻
5249
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)