Skip to content

Commit 4979381

Browse files
fortmarekkelset
authored andcommittedApr 25, 2023
Fix test e2e script (#37081)
1 parent 5834cea commit 4979381

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎scripts/test-manual-e2e.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,22 @@ init_template_app(){
122122

123123
success "Preparing version $PACKAGE_VERSION"
124124

125-
npm pack
126-
127125
TIMESTAMP=$(date +%s)
128126
PACKAGE=$(pwd)/react-native-$PACKAGE_VERSION-$TIMESTAMP.tgz
129-
success "Package bundled ($PACKAGE)"
130-
131-
mv "$(pwd)/react-native-$PACKAGE_VERSION.tgz" "$PACKAGE"
132127

133128
node scripts/set-rn-template-version.js "file:$PACKAGE"
134129
success "React Native version changed in the template"
135130

131+
npm pack
132+
success "Package bundled ($PACKAGE)"
133+
134+
mv "$(pwd)/react-native-$PACKAGE_VERSION.tgz" "$PACKAGE"
135+
136136
project_name="RNTestProject"
137137

138138
pushd /tmp/ >/dev/null || exit
139139
rm -rf "$project_name"
140-
node "$repo_root/cli.js" init "$project_name" --template "$repo_root"
140+
node "$repo_root/cli.js" init "$project_name" --template "$PACKAGE"
141141

142142
info "Double checking the versions in package.json are correct:"
143143
grep "\"react-native\": \".*react-native-$PACKAGE_VERSION-$TIMESTAMP.tgz\"" "/tmp/${project_name}/package.json" || error "Incorrect version number in /tmp/${project_name}/package.json"

0 commit comments

Comments
 (0)
Please sign in to comment.