mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +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
|
- uses: actions/setup-node@master
|
||||||
with:
|
with:
|
||||||
node-version: '16'
|
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
|
- name: Use specific Java version for the builds
|
||||||
uses: joschi/setup-jdk@v2
|
uses: joschi/setup-jdk@v2
|
||||||
with:
|
with:
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
|
cache: gradle
|
||||||
|
|
||||||
- name: Install node modules
|
- name: Install node modules
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -17,7 +17,9 @@
|
|||||||
"build-android": "cd native && detox build -c android.emu.release",
|
"build-android": "cd native && detox build -c android.emu.release",
|
||||||
"e2e-android": "cd native && detox test --configuration android.emu.release --detectOpenHandles",
|
"e2e-android": "cd native && detox test --configuration android.emu.release --detectOpenHandles",
|
||||||
"e2e-ios": "cd native && detox test -c ios.sim.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": {
|
"devDependencies": {
|
||||||
"patch-package": "^6.4.7",
|
"patch-package": "^6.4.7",
|
||||||
|
|||||||
6
nx.json
6
nx.json
@@ -34,6 +34,12 @@
|
|||||||
},
|
},
|
||||||
"build-android": {
|
"build-android": {
|
||||||
"dependsOn": ["^build"]
|
"dependsOn": ["^build"]
|
||||||
|
},
|
||||||
|
"release-android": {
|
||||||
|
"dependsOn": ["^build"]
|
||||||
|
},
|
||||||
|
"release-android-bundle": {
|
||||||
|
"dependsOn": ["^build"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
"prepare:ios": "nx install-pods @notesnook/mobile",
|
"prepare:ios": "nx install-pods @notesnook/mobile",
|
||||||
"build:ios": "nx build-ios @notesnook/mobile",
|
"build:ios": "nx build-ios @notesnook/mobile",
|
||||||
"build:android": "nx build-android @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:ios": "nx e2e-ios @notesnook/mobile",
|
||||||
"test:android": "nx e2e-android @notesnook/mobile",
|
"test:android": "nx e2e-android @notesnook/mobile",
|
||||||
"start:metro": "nx start @notesnook/mobile",
|
"start:metro": "nx start @notesnook/mobile",
|
||||||
|
|||||||
Reference in New Issue
Block a user