2023-10-02 23:10:40 +02:00
|
|
|
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.14.7
|
2024-04-23 01:40:49 +02:00
|
|
|
TURBO_VERSION: 1.13.3-canary.2
|
2023-10-16 23:41:38 +02:00
|
|
|
NODE_LTS_VERSION: 20
|
2023-10-02 23:10:40 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
start:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
environment: release-${{ github.event.inputs.releaseType }}
|
|
|
|
steps:
|
|
|
|
- name: Setup node
|
2024-02-04 23:06:28 +01:00
|
|
|
uses: actions/setup-node@v4
|
2023-10-02 23:10:40 +02:00
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
check-latest: true
|
2023-10-07 00:15:59 +02:00
|
|
|
- run: corepack enable
|
2023-10-02 23:10:40 +02:00
|
|
|
|
|
|
|
- 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 ${{ github.event.inputs.type }}
|
|
|
|
env:
|
|
|
|
CODE_FREEZE_TOKEN: ${{ secrets.CODE_FREEZE_TOKEN }}
|