Skip to content

github actions workflow #1

github actions workflow

github actions workflow #1

Workflow file for this run

name: pl-fe CI
on

Check failure on line 3 in .github/workflows/pl-fe.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pl-fe.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
push:
branches: [ "fork" ]
pull_request:
branches: [ "fork" ]
env:
NODE_ENV: production
jobs:
build:
runs-on: ubuntu-latest
name: Test and upload artifacts
strategy:
matrix:
node-version: [21.x]
steps:
- name: Install system dependencies
run: sudo apt install -y unzip
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install deps
run: yarn install --ignore-scripts
- name: Lint
run: yarn lint
- name: build
run: |
yarn build
cp dist/index.html dist/404.html
cd dist && zip -r ../soapbox.zip . && cd ..
- name: i18n
run: |
yarn i18n
git diff --quiet || (echo "Locale files are out of date. Please run `yarn i18n`" && exit 1)