Skip to content

Commit a7af294

Browse files
v8.0.1 (#395)
* feat: add debug log archiving to deploy workflow - #391 * fix: remove a from ts-jest version - #391 Co-Authored-By: Mike Over <[email protected]>
1 parent 6217cd1 commit a7af294

File tree

5 files changed

+29
-5
lines changed

5 files changed

+29
-5
lines changed

examples/react-firebase/.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,19 @@ jobs:
9999
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
100100
GITHUB_REF: ${{ github.ref }}
101101
GITHUB_HEAD_REF: ${{ github.head_ref }}
102-
# Deploy to project associated with branch name alias in .firebaserc.
102+
# Deploy to project associated with branch name alias in .firebaserc with message set to commit's message.
103103
# Force flag is used to automatically delete any removed cloud functions
104104
run: |
105105
$(yarn bin)/firebase-ci deploy -s --force
106106
107+
# Archive debug logs if deploy fails
108+
- name: Archive Debug Logs
109+
if: ${{ failure() }}
110+
uses: actions/upload-artifact@v2
111+
with:
112+
name: debug-logs
113+
path: ./*.log
114+
107115
- name: Check if version has been updated
108116
if: github.ref == 'refs/heads/prod'
109117
id: check

examples/react-firestore/.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,19 @@ jobs:
117117
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
118118
GITHUB_REF: ${{ github.ref }}
119119
GITHUB_HEAD_REF: ${{ github.head_ref }}
120-
# Deploy to project associated with branch name alias in .firebaserc.
120+
# Deploy to project associated with branch name alias in .firebaserc with message set to commit's message.
121121
# Force flag is used to automatically delete any removed cloud functions
122122
run: |
123123
$(yarn bin)/firebase-ci deploy -s --force
124124
125+
# Archive debug logs if deploy fails
126+
- name: Archive Debug Logs
127+
if: ${{ failure() }}
128+
uses: actions/upload-artifact@v2
129+
with:
130+
name: debug-logs
131+
path: ./*.log
132+
125133
- name: Check if version has been updated
126134
if: github.ref == 'refs/heads/prod'
127135
id: check

generators/app/templates/.github/workflows/deploy.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,19 @@ jobs:
117117
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
118118
GITHUB_REF: ${{ github.ref }}
119119
GITHUB_HEAD_REF: ${{ github.head_ref }}
120-
# Deploy to project associated with branch name alias in .firebaserc.
120+
# Deploy to project associated with branch name alias in .firebaserc with message set to commit's message.
121121
# Force flag is used to automatically delete any removed cloud functions
122122
run: |
123123
$(<% if(useYarn) { %>yarn<% } else { %>npm<% } %> bin)/firebase-ci deploy -s --force
124124
125+
# Archive debug logs if deploy fails
126+
- name: Archive Debug Logs
127+
if: ${{ failure() }}
128+
uses: actions/upload-artifact@v2
129+
with:
130+
name: debug-logs
131+
path: ./*.log
132+
125133
- name: Check if version has been updated
126134
if: github.ref == 'refs/heads/prod'
127135
id: check

generators/app/templates/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"nyc": "^15.1.0",<% } %>
5454
"rimraf": "^3.0.2"<% if(includeFunctionsTests && functionsTestTool === 'mocha') { %>,
5555
"sinon": "^9.2.4"<% } %><% if(typescriptCloudFunctions && includeFunctionsTests && functionsTestTool === 'jest') { %>,
56-
"ts-jest": "^26.4.2a"<% } %><% if(typescriptCloudFunctions) { %>,
56+
"ts-jest": "^26.4.2"<% } %><% if(typescriptCloudFunctions) { %>,
5757
"ts-node": "^9.1.1",
5858
"typescript": "^4.2.4"<% } %>
5959
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-react-firebase",
3-
"version": "8.0.0",
3+
"version": "8.0.1",
44
"description": "React and Firebase project generator (with option for Redux).",
55
"main": "generators/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)