mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 12:32:08 -06:00
Switch from corepack to a global npm install for now (#54578)
This commit is contained in:
parent
50df25733f
commit
ee80068543
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -107,7 +107,9 @@ jobs:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
|
||||
- run: npm ci
|
||||
@ -153,8 +155,13 @@ jobs:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
|
||||
- run: |
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
working-directory: ./pr
|
||||
|
||||
- run: npm ci
|
||||
working-directory: ./pr
|
||||
|
||||
4
.github/workflows/new-release-branch.yaml
vendored
4
.github/workflows/new-release-branch.yaml
vendored
@ -23,7 +23,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
||||
4
.github/workflows/nightly.yaml
vendored
4
.github/workflows/nightly.yaml
vendored
@ -29,7 +29,9 @@ jobs:
|
||||
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- name: Setup and publish nightly
|
||||
run: |
|
||||
|
||||
@ -22,7 +22,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
- name: npm install and test
|
||||
run: |
|
||||
|
||||
4
.github/workflows/set-version.yaml
vendored
4
.github/workflows/set-version.yaml
vendored
@ -26,7 +26,9 @@ jobs:
|
||||
with:
|
||||
ref: ${{ github.event.client_payload.branch_name }}
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
# notably, this is essentially the same script as `new-release-branch.yaml` (with fewer inputs), but it assumes the branch already exists
|
||||
# do note that executing the transform below will prevent the `configurePrerelease` script from running on the source, as it makes the
|
||||
|
||||
4
.github/workflows/update-package-lock.yaml
vendored
4
.github/workflows/update-package-lock.yaml
vendored
@ -32,7 +32,9 @@ jobs:
|
||||
with:
|
||||
node-version: 16
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
# corepack enable npm
|
||||
npm install -g $(jq -r '.packageManager' < package.json)
|
||||
npm --version
|
||||
|
||||
- name: Update package-lock.json and push
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user