Skip to content

Commit

Permalink
chore: expo versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
siradji committed Mar 4, 2024
1 parent 4ca7783 commit 4ca3e4b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/eas-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ jobs:

- run: yarn install --frozen-lockfile

- run: |
git config --global user.email "[email protected]"
git config --global user.name "defichain-bot"
npx standard-version --release-as ${{steps.version.outputs.result}}
- name: EAS Build - iOS & Android
run: eas build --platform all --clear-cache --non-interactive --wait --profile preview
env:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/eas-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@ concurrency:
cancel-in-progress: true

jobs:
version:
name: Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.result }}
steps:
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
id: version
with:
script: |
const semver = context.ref.replace('refs/tags/v', '')
if (semver.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) {
return semver
}
throw new Error('not semver')
result-encoding: string

eas-release-android:
name: EAS Release Android
environment: EAS Release
Expand All @@ -47,10 +29,6 @@ jobs:

- run: yarn install --frozen-lockfile

- run: |
git config --global user.email "[email protected]"
git config --global user.name "defichain-bot"
npx standard-version --release-as ${{needs.version.outputs.version}}

- name: EAS Build - Android
run: eas build --platform android --non-interactive --wait --clear-cache
Expand Down
6 changes: 2 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Reach a wider audience and sell more with Nana",
"slug": "nana-vendors-app",
"owner": "nana_logistics",
"version": "1.0.0",
"version": "1.0.4",
"orientation": "portrait",
"scheme": "myapp",
"userInterfaceStyle": "automatic",
Expand Down Expand Up @@ -48,7 +48,6 @@
"com.google.android.gms.permission.AD_ID"
],
"package": "com.nanaeats.nana_vendors",
"versionCode": 490010101,
"googleServicesFile": "./google-services.json",
"useNextNotificationsApi": true
},
Expand All @@ -61,8 +60,7 @@
"ios": {
"icon": "./assets/app-config/Icon-white-ios1024.png",
"supportsTablet": false,
"bundleIdentifier": "com.nanaeats.nana-vendors",
"buildNumber": "1.1.0"
"bundleIdentifier": "com.nanaeats.nana-vendors"
},
"web": {
"favicon": "./assets/app-config/favicon.png"
Expand Down
4 changes: 3 additions & 1 deletion eas.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"build": {
"production": {
"autoIncrement": true,
"node": "20.0.0",
"channel": "production",
"env": {
Expand Down Expand Up @@ -37,6 +38,7 @@
},
"cli": {
"version": ">=2.2.0",
"requireCommit": true
"requireCommit": true,
"appVersionSource": "remote"
}
}

0 comments on commit 4ca3e4b

Please sign in to comment.