Skip to content

Update build.yml

Update build.yml #11

Workflow file for this run

name: Windows Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Cache Yarn
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Yarn
run: npm install -g yarn
run: yarn config set ignore-engines true

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

View workflow run for this annotation

GitHub Actions / Windows Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 36, Col: 7): 'run' is already defined
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Install dependencies
run: yarn install
- name: Run build script
run: .\build.bat
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.exe