diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index adad9420..829c5d0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,6 +15,11 @@ jobs: with: python-version: "3.10" + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: "16" + - name: Install environment run: | python -m venv ./venv @@ -40,6 +45,11 @@ jobs: run: | [IO.File]::WriteAllLines($pwd.path + "\resources\buildnumber", $env:GITHUB_RUN_NUMBER) + - name: npm ci + run: | + cd client + npm ci + - name: Build binaries run: | ./venv/scripts/activate diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3b91f63..75c82204 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,11 @@ jobs: with: python-version: "3.10" + - name: Set up Node + uses: actions/setup-node@v2 + with: + node-version: "16" + - name: Install environment run: | python -m venv ./venv @@ -32,6 +37,11 @@ jobs: run: | New-Item -ItemType file resources\final + - name: npm ci + run: | + cd client + npm ci + - name: mypy game run: | ./venv/scripts/activate diff --git a/client/package.json b/client/package.json index 9933ecaa..e8ca9618 100644 --- a/client/package.json +++ b/client/package.json @@ -29,6 +29,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "prepare": "eslint src", "test": "react-scripts test", "eject": "react-scripts eject", "electron": "wait-on tcp:3000 && electron ." @@ -36,6 +37,9 @@ "eslintConfig": { "extends": "react-app" }, + "prettier": { + "endOfLine": "auto" + }, "browserslist": { "production": [ ">0.2%",