Skip to content

Commit 955d30c

Browse files
committed
Still screwing around with corepack
1 parent 2da6a75 commit 955d30c

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,17 @@ runs:
3333
run: corepack enable
3434
shell: ${{ inputs.shell }}
3535

36-
- name: Set PATH (Windows)
36+
- name: Set Alias? (Windows)
3737
if: ${{ inputs.shell == 'pwsh' }}
38-
shell: ${{ inputs.shell }}
39-
run: echo "$env:LOCALAPPDATA\Corepack" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
38+
run: echo "function yarn { corepack yarn `$args }" >> $PROFILE
39+
shell: pwsh
4040

4141
- name: Use Node.js 💻
4242
uses: actions/setup-node@v4
4343
with:
4444
node-version-file: .node-version
4545
cache: yarn
4646

47-
- name: Enable Corepack
48-
run: corepack enable
49-
shell: ${{ inputs.shell }}
50-
5147
- name: Install Dependencies (Focused)
5248
if: inputs.package-name != '' && inputs.install-deps == 'true'
5349
run: yarn workspaces focus ${{ inputs.package-name }}

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
workflows: ${{ steps.info.outputs.workflows }}
5555

5656
libraries:
57-
name: Libraries
5857
needs: find-packages
5958
strategy:
6059
fail-fast: false
@@ -65,6 +64,9 @@ jobs:
6564
defaults:
6665
run:
6766
working-directory: ${{ matrix.lib.directory }}
67+
shell: ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
68+
69+
name: ${{ matrix.lib.name }} library (${{ matrix.os }})
6870

6971
steps:
7072
- name: Check out source code
@@ -88,14 +90,13 @@ jobs:
8890
run: yarn tsc
8991

9092
tabs:
91-
name: Tabs
9293
runs-on: ubuntu-latest
9394
needs: find-packages
9495
strategy:
9596
fail-fast: false
9697
matrix:
9798
tabInfo: ${{ fromJson(needs.find-packages.outputs.tabs) }}
98-
99+
name: ${{ matrix.tabInfo.tabName }} Tab
99100
steps:
100101
- name: Check out source code
101102
if: matrix.tabInfo.changes
@@ -137,14 +138,13 @@ jobs:
137138
yarn tsc
138139
139140
bundles:
140-
name: Bundles
141141
runs-on: ubuntu-latest
142142
needs: find-packages
143143
strategy:
144144
fail-fast: false
145145
matrix:
146146
bundleInfo: ${{ fromJson(needs.find-packages.outputs.bundles) }}
147-
147+
name: ${{ matrix.bundleInfo.bundleName }} Bundle
148148
steps:
149149
- name: Check out source code
150150
if: matrix.bundleInfo.changes

0 commit comments

Comments
 (0)