Skip to content

Analyse Next.js 16.0.2-canary.4 #846

Analyse Next.js 16.0.2-canary.4

Analyse Next.js 16.0.2-canary.4 #846

name: 'Analyse Next.js release'
run-name: 'Analyse Next.js ${{ inputs.version }}'
on:
workflow_dispatch:
inputs:
version:
description: 'Next.js version to test against'
required: true
type: string
env:
FORCE_COLOR: 3 # Diplay chalk colors
VERSION: ${{ inputs.version }}
jobs:
analyse-release:
runs-on: ubuntu-24.04-arm
name: Check for relevant Next.js core changes
steps:
- name: Ensure input follows SemVer
# Source: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
run: |
node -e "
const version = process.env.VERSION;
const semverRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
if (!semverRegex.test(version)) {
console.error(\`Error: Version '\${version}' does not follow SemVer format\`);
process.exit(1);
}
console.log(\`Version '\${version}' is valid SemVer\`);
"
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
with:
node-version-file: .node-version
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Check for changes in app router
run: ./next-release-analyser.mjs --version "${{ env.VERSION }}"
working-directory: packages/scripts
env:
MAILPACE_API_TOKEN: ${{ secrets.MAILPACE_API_TOKEN }}
EMAIL_ADDRESS_TO: ${{ secrets.EMAIL_ADDRESS_TO }}
EMAIL_ADDRESS_FROM: ${{ secrets.EMAIL_ADDRESS_FROM }}