Skip to content

Commit

Permalink
Update test_firebase-hosting-merge.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
burnt-exe authored Jun 2, 2024
1 parent 80167b9 commit 826f3d7
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/test_firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,32 @@ jobs:

- name: Create package.json if it doesn't exist
run: |
if [ ! -f package.json ]; then
echo '{
"name": "madj101",
"version": "1.0.0",
"description": "Mobile App Development for Juniors",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack --config webpack.config.js"
},
"author": "Raydo Matthee",
"license": "ISC",
"dependencies": {
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0"
if [ ! -f package.json ]; then
cat <<'EOF' > package.json
{
"name": "madj101",
"version": "1.0.0",
"description": "Mobile App Development for Juniors",
"main": "index.js",
"scripts": {
"test": "echo 'Error: no test specified' && exit 1",
"build": "webpack --config webpack.config.js"
},
"author": "Raydo Matthee",
"license": "ISC",
"dependencies": {
"webpack": "^5.0.0",
"webpack-cli": "^4.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"babel-loader": "^8.0.0"
}
}
}' > package.json
fi
EOF
fi


- name: Create webpack.config.js if it doesn't exist
run: |
Expand Down Expand Up @@ -186,4 +189,4 @@ jobs:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_COURSE_MADJ101 }}
projectId: course-madj101
channelId: live
channelId: live

0 comments on commit 826f3d7

Please sign in to comment.