Skip to content

Commit 9606b05

Browse files
authored
v8.2.0 (#440)
* fix(ci): add placeholder workflow for dependabot (#427) * fix(docs): add before starting steps to base README (#419) * #424 * #425 * #430 * #434 * #436 * #443 * #448 * #450
1 parent 2050235 commit 9606b05

26 files changed

Lines changed: 2616 additions & 1667 deletions

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ npm install -g yo generator-react-firebase
2323
1. Do the following in the Firebase Console:
2424
1. Create both a Firestore Database and Real Time Database within your project
2525
1. Enable Google and/or Email Sign In Methods in the Authentication tab (required to enable login/signup within your application)
26+
1. Confirm billing is enabled for your project
2627
1. Make sure to have Node ^12 installed and selected - this is to match the `engines` setting in `functions/package.json` which defines the function runtime node version (more in the FAQ section)
28+
1. Make sure you have `firebase-tools` installed an you are logged in (`firebase login`)
29+
1. Confirm [Firebase Hosting API](https://console.cloud.google.com/apis/library/firebasehosting.googleapis.com) is enabled for your project
2730

2831
## Getting Started
2932

examples/react-firebase/.github/workflows/delete-preview-channel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v2
2626

2727
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
28-
uses: actions/setup-node@v2.1.5
28+
uses: actions/setup-node@v2.2.0
2929
with:
3030
node-version: ${{ matrix.node-version }}
3131

@@ -34,7 +34,7 @@ jobs:
3434
run: echo "::set-output name=dir::$(yarn cache dir)"
3535

3636
- name: Cache Yarn dependencies
37-
uses: actions/cache@v2.1.5
37+
uses: actions/cache@v2.1.6
3838
with:
3939
path: ${{ steps.yarn-cache.outputs.dir }}
4040
key: ${{ runner.os }}-yarn-${{ matrix.app }}-preview-remove-${{ hashFiles('yarn.lock') }}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
deploy:
1111
name: Deploy
1212
runs-on: ubuntu-20.04
13+
if: github.actor != 'dependabot[bot]'
1314
timeout-minutes: 20
1415
steps:
1516
- name: Cancel Previous Runs
@@ -21,7 +22,7 @@ jobs:
2122
uses: actions/checkout@v2
2223

2324
- name: Setup Node
24-
uses: actions/setup-node@v2.1.5
25+
uses: actions/setup-node@v2.2.0
2526
with:
2627
node-version: 14
2728

@@ -31,7 +32,7 @@ jobs:
3132
echo "::set-output name=dir::$(yarn cache dir)"
3233
3334
- name: Cache App Dependencies
34-
uses: actions/cache@v2.1.5
35+
uses: actions/cache@v2.1.6
3536
with:
3637
path: ${{ steps.cache-settings.outputs.dir }}
3738
key: ${{ runner.os }}-app-${{ hashFiles('yarn.lock') }}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Verify (dependabot)
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
verify:
7+
name: Verify
8+
runs-on: ubuntu-20.04
9+
if: github.actor != 'dependabot[bot]'
10+
timeout-minutes: 20
11+
steps:
12+
- name: Cancel Previous Runs
13+
uses: styfle/cancel-workflow-action@0.9.0
14+
with:
15+
access_token: ${{ github.token }}
16+
17+
- name: Checkout Repo
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v2.2.0
22+
with:
23+
node-version: 14
24+
25+
- name: Get Library Versions For Binary Caching
26+
id: cache-settings
27+
run: |
28+
echo "::set-output name=dir::$(yarn cache dir)"
29+
30+
- name: Cache App Dependencies
31+
uses: actions/cache@v2.1.6
32+
with:
33+
path: ${{ steps.cache-settings.outputs.dir }}
34+
key: ${{ runner.os }}-app-${{ hashFiles('yarn.lock') }}
35+
36+
- name: Install Dependencies
37+
env:
38+
CYPRESS_INSTALL_BINARY: 0 # Skip install of Cypress (handled in its own job)
39+
HUSKY_SKIP_INSTALL: 1 # Skip install of Husky
40+
run: |
41+
yarn install --frozen-lockfile
42+
yarn --cwd functions install --frozen-lockfile
43+
44+
- name: Set environment
45+
run: |
46+
# Get branch name from github ref (i.e. refs/heads/master -> master)
47+
gitBranch=${GITHUB_REF##*/}
48+
49+
# Find the config associated to the firebase project in .firebaserc (falling back to default)
50+
gcloudProject=$(cat .firebaserc | jq -r --arg alias "$gitBranch" '.projects[$alias] // .projects.default')
51+
appName=react-firebase
52+
53+
echo "Setting environment for branch: $gitBranch, project: $gcloudProject, and app: $appName..."
54+
55+
# Set variables to environment to be used in later steps
56+
echo "GCLOUD_PROJECT=$gcloudProject" >> $GITHUB_ENV
57+
echo "NODE_CONFIG_ENV=$branch" >> $GITHUB_ENV
58+
echo "ENV=$branch" >> $GITHUB_ENV
59+
60+
- name: Verify App
61+
run: |
62+
yarn lint # Check for lint in app code
63+
64+
- name: Build Functions
65+
run: |
66+
yarn functions:build
67+
68+
- name: Build App
69+
run: |
70+
yarn build

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
verify:
77
name: Verify
88
runs-on: ubuntu-20.04
9+
if: github.actor != 'dependabot[bot]'
910
timeout-minutes: 20
1011
steps:
1112
- name: Cancel Previous Runs
@@ -17,7 +18,7 @@ jobs:
1718
uses: actions/checkout@v2
1819

1920
- name: Setup Node
20-
uses: actions/setup-node@v2.1.5
21+
uses: actions/setup-node@v2.2.0
2122
with:
2223
node-version: 14
2324

@@ -27,7 +28,7 @@ jobs:
2728
echo "::set-output name=dir::$(yarn cache dir)"
2829
2930
- name: Cache App Dependencies
30-
uses: actions/cache@v2.1.5
31+
uses: actions/cache@v2.1.6
3132
with:
3233
path: ${{ steps.cache-settings.outputs.dir }}
3334
key: ${{ runner.os }}-app-${{ hashFiles('yarn.lock') }}

examples/react-firebase/firebase.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"rules": "storage.rules"
77
},
88
"emulators": {
9+
"auth": {
10+
"port": 9099
11+
},
912
"database": {
1013
"port": 9000
1114
},

examples/react-firebase/package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"dependencies": {
3333
"@material-ui/core": "^4.11.3",
3434
"@material-ui/icons": "^4.11.2",
35-
"firebase": "^8.6.1",
36-
"notistack": "^1.0.7",
35+
"firebase": "^8.7.1",
36+
"notistack": "^1.0.9",
3737
"prop-types": "^15.7.2",
3838
"react": "^17.0.2",
3939
"react-dom": "^17.0.2",
@@ -43,19 +43,18 @@
4343
"reactfire": "^3.0.0-rc.0"
4444
},
4545
"devDependencies": {
46-
"@craco/craco": "6.1.2",
47-
"@sentry/cli": "^1.64.2",
48-
46+
"@craco/craco": "6.2.0",
47+
"@sentry/cli": "^1.67.1",
4948
"babel-eslint": "^10.1.0",
5049
"config": "^3.3.6",
5150
"cross-env": "^7.0.3",
5251
"env-cmd": "^10.1.0",
53-
"eslint": "^7.26.0",
52+
"eslint": "^7.30.0",
5453
"eslint-config-prettier": "^8.3.0",
55-
"eslint-config-standard": "^16.0.2",
54+
"eslint-config-standard": "^16.0.3",
5655
"eslint-config-standard-react": "^11.0.1",
57-
"eslint-plugin-import": "^2.22.1",
58-
"eslint-plugin-jsdoc": "^33.0.0",
56+
"eslint-plugin-import": "^2.23.2",
57+
"eslint-plugin-jsdoc": "^34.7.0",
5958
"eslint-plugin-jsx-a11y": "^6.4.1",
6059
"eslint-plugin-node": "^11.1.0",
6160
"eslint-plugin-prettier": "^3.4.0",
@@ -64,8 +63,8 @@
6463
"eslint-plugin-react-hooks": "^4.2.0",
6564
"eslint-plugin-standard": "^5.0.0",
6665
"firebase-ci": "^0.15.0",
67-
"firebase-tools": "^9.10.2",
68-
"husky": "^6.0.0",
66+
"firebase-tools": "^9.16.0",
67+
"husky": "^7.0.1",
6968
"lint-staged": "^11.0.0",
7069
"minimist": "1.2.5",
7170
"prettier": "^2.3.0",

0 commit comments

Comments
 (0)