Skip to content

Commit

Permalink
build!: migrate npm to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jun 21, 2024
1 parent 6d56152 commit b314be9
Show file tree
Hide file tree
Showing 6 changed files with 5,796 additions and 11,858 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,28 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- run: npm ci --legacy-peer-deps
- name: Node
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: ESLint
run: npm run lint
run: yarn run lint

- name: Find circular dependencies
run: npm run lint:deps
run: yarn run lint:deps

- name: Check Svelte files
run: npm run check
run: yarn run check

- name: Check tests
run: npm run test
run: yarn run test

- name: Check Build
run: npm run build
run: yarn run build
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ARG NODE=node:20-alpine

FROM $NODE AS builder
WORKDIR /app
COPY package*.json .
RUN npm ci --legacy-peer-deps
COPY package.json .
COPY yarn.lock .
RUN yarn install
COPY . .
RUN npx prisma generate
RUN npm run build
RUN npm prune --omit=dev --legacy-peer-deps
RUN yarn run build

################# Web App ##############

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Clone this repo and use standard commands:

```shell
git clone https://github.com/hmbanan666/chat-game
npm install
npm run dev
yarn install
yarn run dev
```

## 🏆 Contributors
Expand Down
Loading

0 comments on commit b314be9

Please sign in to comment.