Download next.js/.github/workflows/code_freeze.yml from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/workflows/code_freeze.yml
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/.github/workflows/code_freeze.yml
-
curl -L -o code_freeze.yml https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/workflows/code_freeze.yml
1.09 kB
| 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.3.3 | |
| NODE_LTS_VERSION: 20 | |
| jobs: | |
| start: | |
| runs-on: ubuntu-latest | |
| environment: release-${{ github.event.inputs.releaseType }} | |
| steps: | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| check-latest: true | |
| - 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 ${{ github.event.inputs.type }} | |
| env: | |
| CODE_FREEZE_TOKEN: ${{ secrets.CODE_FREEZE_TOKEN }} | |