Skip to content

Commit

Permalink
🤖 Pick PR #54578 (Switch from corepack to a global np...) into releas…
Browse files Browse the repository at this point in the history
…e-5.1 (#54787)

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
  • Loading branch information
TypeScript Bot and jakebailey authored Jun 26, 2023
1 parent 2d031ce commit 668c93b
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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
Expand Down Expand Up @@ -147,8 +149,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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/new-release-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release-branch-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,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: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/set-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update-package-lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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
Expand Down

0 comments on commit 668c93b

Please sign in to comment.