build: migrate yarn to pnpm and restrict engine to node@^20.0.0

This commit is contained in:
fallenbagel
2024-06-23 22:47:34 +05:00
parent fac81f75c9
commit 99ee19c714
7 changed files with 17673 additions and 14772 deletions

View File

@@ -17,16 +17,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pnpm Setup
uses: pnpm/action-setup@v4
- name: Install dependencies
env:
HUSKY: 0
run: yarn
run: pnpm install
- name: Lint
run: yarn lint
run: pnpm lint
- name: Formatting
run: yarn format:check
run: pnpm format:check
- name: Build
run: yarn build
run: pnpm build
build_and_push:
name: Build & Publish Docker Images

View File

@@ -14,11 +14,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pnpm Setup
uses: pnpm/aciton-setup@v4
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: yarn cypress:build
start: yarn start
build: pnpm cypress:build
start: pnpm start
wait-on: 'http://localhost:5055'
record: true
env:

View File

@@ -26,8 +26,10 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Pnpm Setup
uses: pnpm/action-setup@v4
- name: Install dependencies
run: yarn
run: pnpm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}