diff --git a/.github/workflows/accept-baselines-fix-lints.yaml b/.github/workflows/accept-baselines-fix-lints.yaml index d19da2d7834..d78282e952c 100644 --- a/.github/workflows/accept-baselines-fix-lints.yaml +++ b/.github/workflows/accept-baselines-fix-lints.yaml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89b2c388e2a..8b117014f5b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/new-release-branch.yaml b/.github/workflows/new-release-branch.yaml index 9b5414a935b..aa658e311ab 100644 --- a/.github/workflows/new-release-branch.yaml +++ b/.github/workflows/new-release-branch.yaml @@ -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 diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 39949c3e8ed..de203a800d9 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -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 diff --git a/.github/workflows/release-branch-artifact.yaml b/.github/workflows/release-branch-artifact.yaml index bbe7fab646f..3c28faa0511 100644 --- a/.github/workflows/release-branch-artifact.yaml +++ b/.github/workflows/release-branch-artifact.yaml @@ -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 diff --git a/.github/workflows/set-version.yaml b/.github/workflows/set-version.yaml index ce7da6726eb..6ae7b382f85 100644 --- a/.github/workflows/set-version.yaml +++ b/.github/workflows/set-version.yaml @@ -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 diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index f99cb37f455..6810544bda9 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -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: |