Skip to content

Commit 668c93b

Browse files
TypeScript Botjakebailey
TypeScript Bot
andauthored
🤖 Pick PR #54578 (Switch from corepack to a global np...) into release-5.1 (#54787)
Co-authored-by: Jake Bailey <[email protected]>
1 parent 2d031ce commit 668c93b

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

‎.github/workflows/ci.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ jobs:
101101
node-version: "*"
102102
check-latest: true
103103
- run: |
104-
corepack enable npm
104+
npm --version
105+
# corepack enable npm
106+
npm install -g $(jq -r '.packageManager' < package.json)
105107
npm --version
106108
107109
- run: npm ci
@@ -147,8 +149,13 @@ jobs:
147149
node-version: "*"
148150
check-latest: true
149151
- run: |
150-
corepack enable npm
151152
npm --version
153+
# corepack enable npm
154+
155+
- run: |
156+
npm install -g $(jq -r '.packageManager' < package.json)
157+
npm --version
158+
working-directory: ./pr
152159
153160
- run: npm ci
154161
working-directory: ./pr

‎.github/workflows/new-release-branch.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
steps:
1818
- uses: actions/setup-node@v3
1919
- run: |
20-
corepack enable npm
20+
npm --version
21+
# corepack enable npm
22+
npm install -g $(jq -r '.packageManager' < package.json)
2123
npm --version
2224
- uses: actions/checkout@v3
2325
with:

‎.github/workflows/nightly.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
2424
registry-url: https://registry.npmjs.org/
2525
- run: |
26-
corepack enable npm
26+
npm --version
27+
# corepack enable npm
28+
npm install -g $(jq -r '.packageManager' < package.json)
2729
npm --version
2830
- name: Setup and publish nightly
2931
run: |

‎.github/workflows/release-branch-artifact.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-node@v3
1818
- run: |
19-
corepack enable npm
19+
npm --version
20+
# corepack enable npm
21+
npm install -g $(jq -r '.packageManager' < package.json)
2022
npm --version
2123
- name: npm install and test
2224
run: |

‎.github/workflows/set-version.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
with:
2121
ref: ${{ github.event.client_payload.branch_name }}
2222
- run: |
23-
corepack enable npm
23+
npm --version
24+
# corepack enable npm
25+
npm install -g $(jq -r '.packageManager' < package.json)
2426
npm --version
2527
# notably, this is essentially the same script as `new-release-branch.yaml` (with fewer inputs), but it assumes the branch already exists
2628
# do note that executing the transform below will prevent the `configurePrerelease` script from running on the source, as it makes the

‎.github/workflows/update-package-lock.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
with:
2727
node-version: 16
2828
- run: |
29-
corepack enable npm
29+
npm --version
30+
# corepack enable npm
31+
npm install -g $(jq -r '.packageManager' < package.json)
3032
npm --version
3133
3234
- name: Update package-lock.json and push

0 commit comments

Comments
 (0)