Skip to content

Commit

Permalink
use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko655 committed Jun 22, 2024
1 parent a2c9232 commit 8929904
Show file tree
Hide file tree
Showing 6 changed files with 8,580 additions and 29,808 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/electron-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Webpack build
run: npm install && npm run webpack-prod
run: yarn install && yarn webpack-prod

- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:

strategy:
matrix:
node-version: [16.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://[email protected]/
- run: npm ci
- run: npm run lint
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn lint
8 changes: 4 additions & 4 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ https://github.com/gecko655/proofreading-tool/releases
## Prepare
```bash
# Fetch dependencies
npm install
yarn install
# Build webpack
npm run webpack # or `npm run webpack-prod` or `npm run webpack-watch`
yarn webpack # or `npm run webpack-prod` or `npm run webpack-watch`
```

## Debug
```bash
npm start
yarn start
```

## Test
```bash
npm run lint # or `npm run lint:fix` (prettier fixes the code format)
yarn lint # or `npm run lint:fix` (prettier fixes the code format)
```

## Build for production
```bash
npm run webpack-prod
npm run dist:mac # or `npm run dist:win`
yarn webpack-prod
yarn dist:mac # or `npm run dist:win`
```
The build artifacts should be located under the `dist/` folder.

Expand Down
Loading

0 comments on commit 8929904

Please sign in to comment.