File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches : [master]
66 pull_request :
77 branches : [master]
8+ workflow_dispatch :
89
910concurrency :
1011 group : e2e-${{ github.ref }}
@@ -32,19 +33,20 @@ jobs:
3233 example/package-lock.json
3334
3435 - name : Install root dependencies
35- run : npm ci
36-
37- - name : Build library
38- run : npm run build
36+ run : npm install
3937
40- - name : Pack library
38+ - name : Build and pack library
4139 run : |
40+ npm run build
4241 npm pack
43- mv react-native-launch-arguments-*.tgz example/react-native-launch-arguments-4.1.1.tgz
42+ VERSION=$(node -p "require('./package.json').version")
43+ mv "react-native-launch-arguments-${VERSION}.tgz" "example/react-native-launch-arguments-${VERSION}.tgz"
4444
4545 - name : Install example dependencies
4646 working-directory : example
47- run : npm ci
47+ run : |
48+ VERSION=$(node -p "require('../package.json').version")
49+ npm install "./react-native-launch-arguments-${VERSION}.tgz" --legacy-peer-deps
4850
4951 - name : Install applesimutils
5052 run : |
@@ -102,17 +104,18 @@ jobs:
102104 - name : Install root dependencies
103105 run : npm ci
104106
105- - name : Build library
106- run : npm run build
107-
108- - name : Pack library
107+ - name : Build and pack library
109108 run : |
109+ npm run build
110110 npm pack
111- mv react-native-launch-arguments-*.tgz example/react-native-launch-arguments-4.1.1.tgz
111+ VERSION=$(node -p "require('./package.json').version")
112+ mv "react-native-launch-arguments-${VERSION}.tgz" "example/react-native-launch-arguments-${VERSION}.tgz"
112113
113114 - name : Install example dependencies
114115 working-directory : example
115- run : npm ci
116+ run : |
117+ VERSION=$(node -p "require('../package.json').version")
118+ npm install "./react-native-launch-arguments-${VERSION}.tgz" --legacy-peer-deps
116119
117120 - name : Cache Gradle
118121 uses : actions/cache@v4
You can’t perform that action at this time.
0 commit comments