react-native-cache-build-gitlab 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,9 +12,9 @@ GitLab Generic Package provider for [RockJS](https://rockjs.dev) with single pac
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
npm install
|
|
15
|
+
npm install react-native-cache-build-gitlab
|
|
16
16
|
# or
|
|
17
|
-
yarn add
|
|
17
|
+
yarn add react-native-cache-build-gitlab
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
@@ -24,7 +24,7 @@ In your `rock.config.mjs`:
|
|
|
24
24
|
```javascript
|
|
25
25
|
import { platformIOS } from "@rock-js/platform-ios";
|
|
26
26
|
import { platformAndroid } from "@rock-js/platform-android";
|
|
27
|
-
import { providerGitLab } from "
|
|
27
|
+
import { providerGitLab } from "react-native-cache-build-gitlab";
|
|
28
28
|
import { pluginMetro } from "@rock-js/plugin-metro";
|
|
29
29
|
|
|
30
30
|
export default {
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
|
|
58
58
|
### Upload (CI)
|
|
59
59
|
|
|
60
|
-
All builds are uploaded to a **single package** with version `1.0.0
|
|
60
|
+
All builds are uploaded to a **single package** with version `1.0.0` (Can change version if needed) at *Package Registry*.:
|
|
61
61
|
|
|
62
62
|
```
|
|
63
63
|
mobile-artifacts@1.0.0/
|
|
@@ -80,7 +80,7 @@ When running:
|
|
|
80
80
|
build_android_cache:
|
|
81
81
|
stage: build
|
|
82
82
|
script:
|
|
83
|
-
-
|
|
83
|
+
- bun run build:android --variant=devDebug
|
|
84
84
|
- CACHE_DIR="$(ls -1dt .rock/cache/remote-build/rock-android-* | head -n1)"
|
|
85
85
|
- sh scripts/upload-cache-remote.sh "${CACHE_DIR}" rock-android-devDebug-{FP}.zip android
|
|
86
86
|
```
|
|
@@ -89,7 +89,7 @@ build_android_cache:
|
|
|
89
89
|
|
|
90
90
|
The official `@rock-js/provider-gitlab` creates **one package per fingerprint**, which can clutter the package registry.
|
|
91
91
|
|
|
92
|
-
This provider stores **all builds in one package** (version `1.0.
|
|
92
|
+
This provider stores **all builds in one package** (version `1.0.4`), using filename-based lookup instead of version-based lookup.
|
|
93
93
|
|
|
94
94
|
## License
|
|
95
95
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-cache-build-gitlab",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"clean": "rm -rf dist && rm -rf node_modules",
|
|
13
13
|
"build": "bun tsc -p tsconfig.json",
|
|
14
|
-
"publish-package": "
|
|
14
|
+
"publish-package": "npm publish"
|
|
15
15
|
},
|
|
16
16
|
"author": "Nguyễn Công Tuấn",
|
|
17
17
|
"homepage": "https://github.com/congtuandevmobile",
|