Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 12 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,43 @@ on:
branches:
- main
- develop
- 'feature/**'
- 'feat/**'
- 'fix/**'
- 'hotfix/**'

pull_request:
branches:
- main
- develop

jobs:
build:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install pnpm
- name: Set up Node.js and pnpm
uses: pnpm/action-setup@v2
with:
version: 9.15.2

- name: Set up Node.js and cache
- name: Set up Node.js and Cache
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'pnpm'

- name: Clear pnpm cache if needed
run: |
if pnpm store status; then
pnpm store prune
fi

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Format code
run: pnpm format

- name: Lint code
run: pnpm lint

- name: Format code
run: pnpm prettier --write .

- name: Run tests
run: pnpm test

Expand All @@ -60,7 +56,8 @@ jobs:
name: codecov-umbrella

release:
needs: build
name: Release
needs: build-and-test
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -73,17 +70,11 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
- name: Set up Node.js and pnpm
uses: pnpm/action-setup@v2
with:
version: 9.15.2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"lint": "eslint \"**/*.ts\" --fix",
"type-check": "tsc --noEmit",
"watch": "tsc --watch",
"prepare": "pnpm run build && husky install",
"prepare": "git config core.hooksPath .husky",
"pack:check": "npm pack && tar -tf *.tgz",
"check:outdated": "pnpm outdated",
"format": "prettier --write .",
Expand Down
Loading