Skip to content

Commit 83fbb6d

Browse files
authored
fix: Using Node 12 for nightly builds (firebase#1460)
1 parent 9ab37f5 commit 83fbb6d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Node.js
3737
uses: actions/setup-node@v1
3838
with:
39-
node-version: 10.x
39+
node-version: 12.x
4040

4141
- name: Install and build
4242
run: |

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,17 @@ $ npm install --save firebase-admin
3636
To use the module in your application, `require` it from any JavaScript file:
3737

3838
```js
39-
var admin = require("firebase-admin");
39+
const { initializeApp } = require("firebase-admin/app");
40+
41+
initializeApp();
4042
```
4143

4244
If you are using ES2015, you can `import` the module instead:
4345

4446
```js
45-
import * as admin from "firebase-admin";
47+
import { initializeApp } from "firebase-admin/app";
48+
49+
initializeApp();
4650
```
4751

4852

@@ -55,7 +59,7 @@ requests, code review feedback, and also pull requests.
5559

5660
## Supported Environments
5761

58-
We support Node.js 10.13.0 and higher.
62+
We support Node.js 12 and higher.
5963

6064
Please also note that the Admin SDK should only
6165
be used in server-side/back-end environments controlled by the app developer.

0 commit comments

Comments
 (0)