mirror of
https://github.com/facebook/react.git
synced 2026-02-26 04:55:00 +00:00
[ci] Standardize node version and timezones
Quick change to standardize on a single timezone across all workflows
and to use the same version of node (18.20.1).
Also updates .nvmrc
ghstack-source-id: e1d43006ec
Pull Request resolved: https://github.com/facebook/react/pull/30323
This commit is contained in:
9
.github/workflows/compiler_playground.yml
vendored
9
.github/workflows/compiler_playground.yml
vendored
@@ -5,9 +5,12 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths:
|
||||
- "compiler/**"
|
||||
- compiler/**
|
||||
- .github/workflows/compiler-playground.yml
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: compiler
|
||||
@@ -20,8 +23,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: compiler/yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
1
.github/workflows/compiler_rust.yml
vendored
1
.github/workflows/compiler_rust.yml
vendored
@@ -18,6 +18,7 @@ on:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
RUSTFLAGS: -Dwarnings
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
||||
17
.github/workflows/compiler_typescript.yml
vendored
17
.github/workflows/compiler_typescript.yml
vendored
@@ -5,9 +5,12 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths:
|
||||
- "compiler/**"
|
||||
- compiler/**
|
||||
- .github/workflows/compiler-typescript.yml
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: compiler
|
||||
@@ -31,8 +34,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: compiler/yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
@@ -50,8 +53,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: compiler/yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
@@ -74,8 +77,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: compiler/yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
3
.github/workflows/devtools_check_repro.yml
vendored
3
.github/workflows/devtools_check_repro.yml
vendored
@@ -5,6 +5,9 @@ on:
|
||||
issue_comment:
|
||||
types: [created, edited]
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
check-repro:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
branches: [main, meta-www, meta-fbsource]
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
download_artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
9
.github/workflows/runtime_fizz.yml
vendored
9
.github/workflows/runtime_fizz.yml
vendored
@@ -5,7 +5,10 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'compiler/**'
|
||||
- compiler/**
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
check_generated_fizz_runtime:
|
||||
@@ -15,8 +18,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
9
.github/workflows/runtime_flags.yml
vendored
9
.github/workflows/runtime_flags.yml
vendored
@@ -5,7 +5,10 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'compiler/**'
|
||||
- compiler/**
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
flags:
|
||||
@@ -15,8 +18,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
9
.github/workflows/runtime_flow.yml
vendored
9
.github/workflows/runtime_flow.yml
vendored
@@ -5,7 +5,10 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'compiler/**'
|
||||
- compiler/**
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
discover_flow_inline_configs:
|
||||
@@ -34,8 +37,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
4
.github/workflows/runtime_fuzz_tests.yml
vendored
4
.github/workflows/runtime_fuzz_tests.yml
vendored
@@ -9,6 +9,10 @@ on:
|
||||
inputs:
|
||||
prerelease_commit_sha:
|
||||
required: false
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
test_fuzz:
|
||||
if: inputs.prerelease_commit_sha == ''
|
||||
|
||||
9
.github/workflows/runtime_test.yml
vendored
9
.github/workflows/runtime_test.yml
vendored
@@ -5,7 +5,10 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'compiler/**'
|
||||
- compiler/**
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -44,8 +47,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
19
.github/workflows/shared_lint.yml
vendored
19
.github/workflows/shared_lint.yml
vendored
@@ -5,6 +5,9 @@ on:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
name: Run prettier
|
||||
@@ -13,8 +16,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
@@ -31,8 +34,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
@@ -49,8 +52,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
@@ -67,8 +70,8 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
node-version: 18.20.1
|
||||
cache: yarn
|
||||
cache-dependency-path: yarn.lock
|
||||
- name: Restore cached node_modules
|
||||
uses: actions/cache@v4
|
||||
|
||||
3
.github/workflows/shared_stale.yml
vendored
3
.github/workflows/shared_stale.yml
vendored
@@ -5,6 +5,9 @@ on:
|
||||
# Run hourly
|
||||
- cron: '0 * * * *'
|
||||
|
||||
env:
|
||||
TZ: /usr/share/zoneinfo/America/Los_Angeles
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user