diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 620d46c8a1102..f0807bf8bacdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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,7 +155,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 diff --git a/.github/workflows/new-release-branch.yaml b/.github/workflows/new-release-branch.yaml index d16986017878d..8d5ec9a7010c8 100644 --- a/.github/workflows/new-release-branch.yaml +++ b/.github/workflows/new-release-branch.yaml @@ -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: diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index c8c850955def1..8692ed2d75e83 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -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: | diff --git a/.github/workflows/release-branch-artifact.yaml b/.github/workflows/release-branch-artifact.yaml index 6c8e94223c5c3..e0b95bdf00660 100644 --- a/.github/workflows/release-branch-artifact.yaml +++ b/.github/workflows/release-branch-artifact.yaml @@ -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: | diff --git a/.github/workflows/set-version.yaml b/.github/workflows/set-version.yaml index 3d7f540bdcfcc..ec04aebfefe0b 100644 --- a/.github/workflows/set-version.yaml +++ b/.github/workflows/set-version.yaml @@ -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 diff --git a/.github/workflows/update-package-lock.yaml b/.github/workflows/update-package-lock.yaml index 770998592a9a5..f3b2c35e4e173 100644 --- a/.github/workflows/update-package-lock.yaml +++ b/.github/workflows/update-package-lock.yaml @@ -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