Skip to content

Commit

Permalink
chore: add script to prepare the app in the CI flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaguirrem committed Feb 13, 2025
1 parent 3363187 commit 4b75aaa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: Checkout repository
uses: actions/checkout@v4

- name: Set Node version using nvm
shell: bash -l {0}
run: nvm install

- name: Install Dependencies
- name: Install dependencies
run: npm install

- name: Linter
Expand All @@ -27,4 +27,7 @@ jobs:
run: npm run prettify:check

- name: Build
run: npm run build
run: npm run prepare

- name: Prepare App
run: npm run prepare:app
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"android": "expo run:android",
"ios": "expo run:ios",
"lint": "tsc --noEmit && eslint",
"prepare": "expo prebuild",
"reset-project": "node ./scripts/reset-project.js",
"start": "expo start",
"web": "expo start --web"
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@
"license": "MIT",
"scripts": {
"build": "tsc",
"build:app:android": "npm --prefix example run android",
"build:app:ios": "npm --prefix example run ios",
"lint": "tsc --noEmit && eslint",
"prepare": "npm run build",
"prepare:app": "npm --prefix example run prepare",
"prettify": "prettier --config '.prettierrc' './**/*.ts' './**/*.tsx'",
"prettify:check": "npm run prettify -- --check",
"prettify:fix": "npm run prettify -- --write"
"prettify:fix": "npm run prettify -- --write",
"start:app": "npm --prefix example run start"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.24.0",
Expand Down

0 comments on commit 4b75aaa

Please sign in to comment.