Skip to content

Commit

Permalink
Use .nvmrc for GitHub actions (#16569)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored and piitaya committed May 23, 2023
1 parent 5887a53 commit e8eddfb
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 35 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cast_deployment.yaml
Expand Up @@ -9,7 +9,6 @@ on:
- master

env:
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

jobs:
Expand All @@ -26,10 +25,10 @@ jobs:
with:
ref: dev

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down Expand Up @@ -62,10 +61,10 @@ jobs:
with:
ref: master

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/ci.yaml
Expand Up @@ -11,7 +11,6 @@ on:
- master

env:
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -26,10 +25,10 @@ jobs:
steps:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2
- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn
- name: Install dependencies
run: yarn install --immutable
Expand All @@ -49,10 +48,10 @@ jobs:
steps:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2
- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn
- name: Install dependencies
run: yarn install --immutable
Expand All @@ -67,10 +66,10 @@ jobs:
steps:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2
- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn
- name: Install dependencies
run: yarn install --immutable
Expand All @@ -85,10 +84,10 @@ jobs:
steps:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2
- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn
- name: Install dependencies
run: yarn install --immutable
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/demo_deployment.yaml
Expand Up @@ -10,7 +10,6 @@ on:
- master

env:
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

jobs:
Expand All @@ -27,10 +26,10 @@ jobs:
with:
ref: dev

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down Expand Up @@ -63,10 +62,10 @@ jobs:
with:
ref: master

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/design_deployment.yaml
Expand Up @@ -6,7 +6,6 @@ on:
- cron: "0 0 * * *"

env:
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

jobs:
Expand All @@ -19,10 +18,10 @@ jobs:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/design_preview.yaml
Expand Up @@ -11,7 +11,6 @@ on:
- dev

env:
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

jobs:
Expand All @@ -24,10 +23,10 @@ jobs:
- name: Check out files from GitHub
uses: actions/checkout@v3.5.2

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/nightly.yaml
Expand Up @@ -7,7 +7,6 @@ on:

env:
PYTHON_VERSION: "3.10"
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

permissions:
Expand All @@ -28,10 +27,10 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Expand Up @@ -7,7 +7,6 @@ on:

env:
PYTHON_VERSION: "3.10"
NODE_VERSION: 16
NODE_OPTIONS: --max_old_space_size=6144

# Set default workflow permissions
Expand All @@ -34,10 +33,10 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Set up Node ${{ env.NODE_VERSION }}
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"
cache: yarn

- name: Install dependencies
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/translations.yaml
Expand Up @@ -7,9 +7,6 @@ on:
paths:
- src/translations/en.json

env:
NODE_VERSION: 16

jobs:
upload:
name: Upload
Expand All @@ -21,5 +18,4 @@ jobs:
- name: Upload Translations
run: |
export LOKALISE_TOKEN="${{ secrets.LOKALISE_TOKEN }}"
./script/translations_upload_base

0 comments on commit e8eddfb

Please sign in to comment.