mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
ci: add release commands
This commit is contained in:
13
.github/workflows/android.publish.yml
vendored
13
.github/workflows/android.publish.yml
vendored
@@ -14,12 +14,25 @@ jobs:
|
||||
- uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: |
|
||||
apps/mobile/package-lock.json
|
||||
apps/web/package-lock.json
|
||||
packages/core/package-lock.json
|
||||
packages/crypto/package-lock.json
|
||||
packages/crypto-worker/package-lock.json
|
||||
packages/editor-mobile/package-lock.json
|
||||
packages/editor/package-lock.json
|
||||
packages/logger/package-lock.json
|
||||
packages/streamable-fs/package-lock.json
|
||||
packages/theme/package-lock.json
|
||||
|
||||
- name: Use specific Java version for the builds
|
||||
uses: joschi/setup-jdk@v2
|
||||
with:
|
||||
java-version: '11'
|
||||
architecture: 'x64'
|
||||
cache: gradle
|
||||
|
||||
- name: Install node modules
|
||||
run: |
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
"build-android": "cd native && detox build -c android.emu.release",
|
||||
"e2e-android": "cd native && detox test --configuration android.emu.release --detectOpenHandles",
|
||||
"e2e-ios": "cd native && detox test -c ios.sim.release --detectOpenHandles",
|
||||
"bump": "npx react-native bump-version --skip-semver-for android"
|
||||
"bump": "npx react-native bump-version --skip-semver-for android",
|
||||
"release-android": "cd native/android && GITHUB_RELEASE=true ENVFILE=.env.public ./gradlew bundleRelease --no-daemon",
|
||||
"release-android-bundle": "cd native/android && ./gradlew bundleRelease --no-daemon"
|
||||
},
|
||||
"devDependencies": {
|
||||
"patch-package": "^6.4.7",
|
||||
|
||||
6
nx.json
6
nx.json
@@ -34,6 +34,12 @@
|
||||
},
|
||||
"build-android": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"release-android": {
|
||||
"dependsOn": ["^build"]
|
||||
},
|
||||
"release-android-bundle": {
|
||||
"dependsOn": ["^build"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
"prepare:ios": "nx install-pods @notesnook/mobile",
|
||||
"build:ios": "nx build-ios @notesnook/mobile",
|
||||
"build:android": "nx build-android @notesnook/mobile",
|
||||
"release:android": "nx release-android @notesnook/mobile",
|
||||
"release:android:bundle": "nx release-android-bundle @notesnook/mobile",
|
||||
"test:ios": "nx e2e-ios @notesnook/mobile",
|
||||
"test:android": "nx e2e-android @notesnook/mobile",
|
||||
"start:metro": "nx start @notesnook/mobile",
|
||||
|
||||
Reference in New Issue
Block a user