Skip to content

Commit

Permalink
Setup verify in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jan 7, 2024
1 parent e6227be commit 3df0139
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 270 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Verify

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: lts/*

- run: yarn install --frozen-lockfile
- run: yarn prepack
4 changes: 0 additions & 4 deletions .hooks/pre-commit

This file was deleted.

11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@
"systembars"
],
"scripts": {
"format": "prettier '**/*' -u -w",
"setup-hooks": "git config --local core.hooksPath .hooks",
"build": "bob build",
"format": "prettier '**/*' --ignore-unknown --write",
"typecheck": "tsc --noEmit",
"prepack": "yarn typecheck && yarn build"
"build": "bob build",
"prepack": "yarn format --check --write=false && yarn typecheck && yarn build"
},
"react-native-builder-bob": {
"source": "src",
Expand All @@ -50,9 +49,6 @@
"prettier-plugin-organize-imports"
]
},
"lint-staged": {
"*": "prettier -u -w"
},
"peerDependencies": {
"react": ">=18.1.0",
"react-native": ">=0.70.0"
Expand All @@ -61,7 +57,6 @@
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@types/react": "^18.2.47",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"react": "18.2.0",
Expand Down
Loading

0 comments on commit 3df0139

Please sign in to comment.