Skip to content

Help Gerald handle files that it can't read. #360

Help Gerald handle files that it can't read.

Help Gerald handle files that it can't read. #360

Workflow file for this run

name: Build index.js
'on':
push:
branches:
- main
- debug
pull_request:
branches:
- main
jobs:
build_index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: [16.x]

Check failure on line 17 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build index.js

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 17, Col: 25): A sequence was not expected
- run: sudo npm i -g @zeit/ncc
- run: yarn
name: "Setting up Yarn"
- run: yarn global add
- run: npx babel src --out-dir js
name: Transpile flow to javascript
- run: ncc build js/gerald.js
name: Build dist folder
- name: Commit files
run: |
echo ${{ github.ref }}
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Automated build push" -a | exit 0
- name: Push changes
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/debug'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}