Enable corepack in CI (#53152)

This commit is contained in:
Jake Bailey
2023-03-14 09:59:46 -07:00
committed by GitHub
parent 2953bcdf2e
commit e08a2db86d
7 changed files with 22 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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: |