Skip to content

Commit e08a2db

Browse files
authored
Enable corepack in CI (#53152)
1 parent 2953bcd commit e08a2db

7 files changed

+22
-1
lines changed

.github/workflows/accept-baselines-fix-lints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
git config user.email "[email protected]"
1717
git config user.name "TypeScript Bot"
18-
npm install
18+
npm ci
1919
git rm -r --quiet tests/baselines/reference
2020
npx hereby runtests-parallel --ci --fix || true
2121
npx hereby baseline-accept

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ jobs:
9797
with:
9898
node-version: "*"
9999
check-latest: true
100+
- run: |
101+
corepack enable npm
102+
npm --version
100103
101104
- run: npm ci
102105

@@ -172,6 +175,9 @@ jobs:
172175
with:
173176
node-version: "*"
174177
check-latest: true
178+
- run: |
179+
corepack enable npm
180+
npm --version
175181
176182
- run: npm ci
177183
working-directory: ./pr

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010

1111
steps:
1212
- uses: actions/setup-node@v3
13+
- run: |
14+
corepack enable npm
15+
npm --version
1316
- uses: actions/checkout@v3
1417
with:
1518
fetch-depth: 5

.github/workflows/nightly.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
with:
2020
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
2121
registry-url: https://registry.npmjs.org/
22+
- run: |
23+
corepack enable npm
24+
npm --version
2225
- name: Setup and publish nightly
2326
run: |
2427
npm whoami

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-node@v3
15+
- run: |
16+
corepack enable npm
17+
npm --version
1518
- name: npm install and test
1619
run: |
1720
npm ci

.github/workflows/set-version.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
- uses: actions/checkout@v3
1414
with:
1515
ref: ${{ github.event.client_payload.branch_name }}
16+
- run: |
17+
corepack enable npm
18+
npm --version
1619
# notably, this is essentially the same script as `new-release-branch.yaml` (with fewer inputs), but it assumes the branch already exists
1720
# do note that executing the transform below will prevent the `configurePrerelease` script from running on the source, as it makes the
1821
# `version` identifier no longer match the regex it uses

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 16
22+
- run: |
23+
corepack enable npm
24+
npm --version
2225
2326
- name: Update package-lock.json and push
2427
run: |

0 commit comments

Comments
 (0)