/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
.github/workflows/code_freeze.yml
49 строк
1 KB
Benjamin Woodruff
[ci] Use node-version-file when we already have a repository checkout and reduce hardcoded references to node versions (#94780)
16 июн 2026, 03:48
Не верифицирован
16 июн 2026, 03:48
36a8f4c
Код
Авторство
О чём код?
on: workflow_dispatch: inputs: type: description: Enable/disable code freeze required: true type: choice options: - enable - disable secrets: CODE_FREEZE_TOKEN: required: true name: Code Freeze env: NAPI_CLI_VERSION: 2.18.4 TURBO_VERSION: 2.9.4 NODE_LTS_VERSION: 20 jobs: start: runs-on: ubuntu-latest environment: release-${{ github.event.inputs.releaseType }} steps: - name: Setup node uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: ${{ env.NODE_LTS_VERSION }} check-latest: true package-manager-cache: false - name: Setup corepack run: | npm i -g corepack@0.31 corepack enable - run: git clone https://github.com/vercel/next.js.git --depth=1 . # https://github.com/actions/virtual-environments/issues/1187 - name: tune linux network run: sudo ethtool -K eth0 tx off rx off - run: node ./scripts/code-freeze.js --type "${INPUT_TYPE}" env: CODE_FREEZE_TOKEN: ${{ secrets.CODE_FREEZE_TOKEN }} INPUT_TYPE: ${{ github.event.inputs.type }}