Commit c25fa950 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by Zack Tanner

Fix corepack keys (#75600)

parent 22ce8eae
...@@ -28,4 +28,5 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ ...@@ -28,4 +28,5 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# RUN su node -c "npm install -g <your-package-list-here>" # RUN su node -c "npm install -g <your-package-list-here>"
# Enable pnpm # Enable pnpm
RUN npm i -g corepack@latest
RUN corepack enable pnpm RUN corepack enable pnpm
\ No newline at end of file
...@@ -12,6 +12,7 @@ RUN apt install unzip wget curl nano htop screen build-essential pkg-config libs ...@@ -12,6 +12,7 @@ RUN apt install unzip wget curl nano htop screen build-essential pkg-config libs
RUN ln $(which python3) /usr/bin/python RUN ln $(which python3) /usr/bin/python
RUN curl -sfLS https://install-node.vercel.app/v18.18.2 | bash -s -- -f RUN curl -sfLS https://install-node.vercel.app/v18.18.2 | bash -s -- -f
RUN npm i -g corepack@0.31
RUN corepack enable RUN corepack enable
WORKDIR /next-stats WORKDIR /next-stats
......
...@@ -29,7 +29,10 @@ jobs: ...@@ -29,7 +29,10 @@ jobs:
with: with:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: Determine deploy target - name: Determine deploy target
# 'force-preview' performs a full preview build but only if acknowledged i.e. workflow_dispatch # 'force-preview' performs a full preview build but only if acknowledged i.e. workflow_dispatch
# 'automated-preview' for pushes on branches other than 'canary' for integration testing. # 'automated-preview' for pushes on branches other than 'canary' for integration testing.
...@@ -70,7 +73,10 @@ jobs: ...@@ -70,7 +73,10 @@ jobs:
with: with:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
...@@ -458,7 +464,10 @@ jobs: ...@@ -458,7 +464,10 @@ jobs:
with: with:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
# https://github.com/actions/virtual-environments/issues/1187 # https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network - name: tune linux network
...@@ -518,7 +527,10 @@ jobs: ...@@ -518,7 +527,10 @@ jobs:
with: with:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
# https://github.com/actions/virtual-environments/issues/1187 # https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network - name: tune linux network
...@@ -576,7 +588,10 @@ jobs: ...@@ -576,7 +588,10 @@ jobs:
with: with:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- uses: ./.github/actions/setup-rust - uses: ./.github/actions/setup-rust
with: with:
......
...@@ -107,7 +107,10 @@ jobs: ...@@ -107,7 +107,10 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 18 node-version: 18
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: 'Run link checker' - name: 'Run link checker'
run: node ./.github/actions/validate-docs-links/dist/index.js run: node ./.github/actions/validate-docs-links/dist/index.js
env: env:
......
...@@ -31,7 +31,10 @@ jobs: ...@@ -31,7 +31,10 @@ jobs:
with: with:
node-version: 18 node-version: 18
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- run: git clone https://github.com/vercel/next.js.git --depth=1 . - run: git clone https://github.com/vercel/next.js.git --depth=1 .
......
...@@ -12,7 +12,10 @@ jobs: ...@@ -12,7 +12,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: 'Issues: Send notification to Slack' - name: 'Issues: Send notification to Slack'
run: node ./.github/actions/next-repo-actions/dist/issues/index.mjs run: node ./.github/actions/next-repo-actions/dist/issues/index.mjs
continue-on-error: true continue-on-error: true
......
...@@ -82,6 +82,7 @@ jobs: ...@@ -82,6 +82,7 @@ jobs:
run: | run: |
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb
sudo dpkg -i hyperfine_1.16.1_amd64.deb sudo dpkg -i hyperfine_1.16.1_amd64.deb
npm i -g corepack@0.31
corepack enable corepack enable
pnpm install --loglevel error pnpm install --loglevel error
......
...@@ -25,7 +25,9 @@ jobs: ...@@ -25,7 +25,9 @@ jobs:
check-latest: true check-latest: true
- name: Setup pnpm - name: Setup pnpm
run: corepack enable run: |
npm i -g corepack@0.31
corepack enable
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
......
...@@ -39,7 +39,10 @@ jobs: ...@@ -39,7 +39,10 @@ jobs:
with: with:
node-version: 18 node-version: 18
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- run: pnpm install - run: pnpm install
- run: pnpm build - run: pnpm build
......
...@@ -10,7 +10,10 @@ jobs: ...@@ -10,7 +10,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: 'Send report to Slack (AI-powered)' - name: 'Send report to Slack (AI-powered)'
run: node ./.github/actions/next-repo-actions/dist/triage-issues-with-ai/index.js run: node ./.github/actions/next-repo-actions/dist/triage-issues-with-ai/index.js
env: env:
......
...@@ -82,7 +82,11 @@ jobs: ...@@ -82,7 +82,11 @@ jobs:
- name: tune linux network - name: tune linux network
run: sudo ethtool -K eth0 tx off rx off run: sudo ethtool -K eth0 tx off rx off
- run: corepack enable && pnpm --version - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
pnpm --version
- id: get-store-path - id: get-store-path
run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT run: echo STORE_PATH=$(pnpm store path) >> $GITHUB_OUTPUT
......
...@@ -26,7 +26,10 @@ jobs: ...@@ -26,7 +26,10 @@ jobs:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
......
...@@ -27,7 +27,10 @@ jobs: ...@@ -27,7 +27,10 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
......
...@@ -28,7 +28,10 @@ jobs: ...@@ -28,7 +28,10 @@ jobs:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
......
...@@ -39,7 +39,10 @@ jobs: ...@@ -39,7 +39,10 @@ jobs:
node-version: ${{ env.NODE_LTS_VERSION }} node-version: ${{ env.NODE_LTS_VERSION }}
check-latest: true check-latest: true
- run: corepack enable - name: Setup corepack
run: |
npm i -g corepack@0.31
corepack enable
- name: Install dependencies - name: Install dependencies
shell: bash shell: bash
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment