mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Enable corepack in CI (#53152)
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
||||
run: |
|
||||
git config user.email "typescriptbot@microsoft.com"
|
||||
git config user.name "TypeScript Bot"
|
||||
npm install
|
||||
npm ci
|
||||
git rm -r --quiet tests/baselines/reference
|
||||
npx hereby runtests-parallel --ci --fix || true
|
||||
npx hereby baseline-accept
|
||||
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -97,6 +97,9 @@ jobs:
|
||||
with:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
|
||||
- run: npm ci
|
||||
|
||||
@@ -172,6 +175,9 @@ jobs:
|
||||
with:
|
||||
node-version: "*"
|
||||
check-latest: true
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
|
||||
- run: npm ci
|
||||
working-directory: ./pr
|
||||
|
||||
3
.github/workflows/new-release-branch.yaml
vendored
3
.github/workflows/new-release-branch.yaml
vendored
@@ -10,6 +10,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/setup-node@v3
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 5
|
||||
|
||||
3
.github/workflows/nightly.yaml
vendored
3
.github/workflows/nightly.yaml
vendored
@@ -19,6 +19,9 @@ jobs:
|
||||
with:
|
||||
# Use NODE_AUTH_TOKEN environment variable to authenticate to this registry.
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
- name: Setup and publish nightly
|
||||
run: |
|
||||
npm whoami
|
||||
|
||||
@@ -12,6 +12,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
- name: npm install and test
|
||||
run: |
|
||||
npm ci
|
||||
|
||||
3
.github/workflows/set-version.yaml
vendored
3
.github/workflows/set-version.yaml
vendored
@@ -13,6 +13,9 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.client_payload.branch_name }}
|
||||
- run: |
|
||||
corepack enable npm
|
||||
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
|
||||
# `version` identifier no longer match the regex it uses
|
||||
|
||||
3
.github/workflows/update-package-lock.yaml
vendored
3
.github/workflows/update-package-lock.yaml
vendored
@@ -19,6 +19,9 @@ jobs:
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
- run: |
|
||||
corepack enable npm
|
||||
npm --version
|
||||
|
||||
- name: Update package-lock.json and push
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user