Skip to content

build(deps-dev): bump eslint-plugin-prettier from 5.1.3 to 5.2.1 (#478) #1435

build(deps-dev): bump eslint-plugin-prettier from 5.1.3 to 5.2.1 (#478)

build(deps-dev): bump eslint-plugin-prettier from 5.1.3 to 5.2.1 (#478) #1435

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node: [18, 20, 22]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: |
yarn install
- name: Build
run: |
yarn build
i18n:
runs-on: ubuntu-latest
# only run on pushes to master branch
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
needs: [build]
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install Dependencies
run: |
yarn install
- name: Push Translatable Strings onto Crowdin
run: |
yarn port-i18n
yarn crowdin:push
env:
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}