Skip to content

Commit d74ec49

Browse files
ifielkerhiranya911William Sedlacekrsgowmanbojeil-google
authored
Ml merge (#851)
* Custom Action for sending Tweets (#784) * Experimental custom Action for sending Tweets * Added license headers * Added README file * Updated package descriptions * Improve customClaims Typing (#768) * chore: Experimental release flow based on Actions (#780) * chore: Experimental release flow based on Actions * Added tarball verification step; Simplified CI trigger * Splitting staging and publish phases into separate jobs * Fleshed out the full workflow * Trigger RC build * chore: Migrated to ESlint (#790) * chore: Migrated to ESlint * Added licesne header * Enabling additional ESLint checks (#794) * chore: Enabling more ESLint checks and fixing errors (#797) * Fix compilation error in integration tests (#798) Introduced by #790 * Build integration tests during CI (and release) (#800) Note that this won't actually run them. Additionally, the *unit* tests are also built, impying that we're building them twice (once during this step, and possibly again when running the unit tests.) * Fix revokeRefreshTokens to round consistently with the other platforms. (#801) This also makes it consistent with the comments a few lines above, as well as the integration test. * feat(auth): Multi-factor Auth support with SMS for Google Cloud Identity Platform (#804) Defines multi-factor auth administrative APIs for Google Cloud Identity Platform. * Defines new MFA types in toc.yaml. (#807) * Removes special char from index.d.ts. (#808) This is causing errors in the reference generation process. * Defines MultiFactor{Create|Update}Settings interfaces. (#809) * Defines MultiFactor{Create|Update}Settings interfaces. * chore: Adding a .npmrc file to the root of the repo (#810) * chore: Adding a .npmrc file to the root of the repo * Removing the root-level .npmrc file * [chore] Release 8.10.0 (#811) * [chore] Release 8.10.0 (take 2) (#812) * Bump acorn from 6.1.1 to 6.4.1 (#815) Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.1. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](acornjs/acorn@6.1.1...6.4.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixing Android notification options descriptions (#820) * Fixing doc bug that conflated sound and tag options for Android notifications. * Removing duplicate documentation for tag. * Adding tag details in the right place this time, hopefully. * chore: Splitting the index.d.ts file into smaller files (#751) * Splitting the index.d.ts file into smaller files * Database return type fixed * chore: Cleaning up package verification scripts (#822) * chore: Cleaning up package verification scripts * Added package metadata to test package.json file * fix(auth): Fixing UserImportRecord typings declaration (#835) * fix(auth): Fixing UserImportRecord typings declaration * Fixing more integration test compilation errors * Trigger CI * Removed redundant line * Bump minimist from 1.2.0 to 1.2.3 (#839) Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.3. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.3) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * remerge conflict Co-authored-by: Hiranya Jayathilaka <[email protected]> Co-authored-by: William Sedlacek <[email protected]> Co-authored-by: rsgowman <[email protected]> Co-authored-by: bojeil-google <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: egilmorez <[email protected]>
1 parent bbd92f1 commit d74ec49

File tree

111 files changed

+45064
-7692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+45064
-7692
lines changed

.eslintrc.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*!
2+
* Copyright 2020 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
module.exports = {
18+
root: true,
19+
parser: '@typescript-eslint/parser',
20+
plugins: [
21+
'@typescript-eslint',
22+
],
23+
extends: [
24+
'eslint:recommended',
25+
'plugin:@typescript-eslint/eslint-recommended',
26+
'plugin:@typescript-eslint/recommended',
27+
],
28+
rules: {
29+
// Following checks are temporarily disabled. We shall incrementally enable them in the
30+
// future, fixing any violations as we go.
31+
'@typescript-eslint/no-non-null-assertion': 0,
32+
33+
// Disabled checks
34+
'@typescript-eslint/no-explicit-any': 0,
35+
'@typescript-eslint/no-use-before-define': 0,
36+
37+
// Required checks
38+
'indent': ['error', 2],
39+
'@typescript-eslint/explicit-function-return-type': [
40+
'error',
41+
{
42+
'allowExpressions': true,
43+
'allowTypedFunctionExpressions': true,
44+
'allowHigherOrderFunctions': true
45+
}
46+
],
47+
}
48+
};

.github/actions/send-tweet/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Send Tweet GitHub Action
2+
3+
This is a minimalistic GitHub Action for posting Firebase release announcements
4+
to Twitter. Simply specify the Twitter API keys along with the Tweet status to
5+
be posted.
6+
7+
## Inputs
8+
9+
### `status`
10+
11+
**Required** Text of the Tweet to send.
12+
13+
### `consumer-key`
14+
15+
**Required** Consumer API key from Twitter.
16+
17+
### `consumer-secret`
18+
19+
**Required** Consumer API secret key from Twitter.
20+
21+
### `access-token`
22+
23+
**Required** Twitter application access token.
24+
25+
### `access-token-secret`
26+
27+
**Required** Twitter application access token secret.
28+
29+
## Example usage
30+
31+
```
32+
- name: Send Tweet
33+
uses: firebase/firebase-admin-node/.github/actions/send-tweet
34+
with:
35+
status: >
36+
v1.2.3 of @Firebase Admin Node.js SDK is available.
37+
Release notes at https://firebase.google.com.
38+
consumer-key: ${{ secrets.TWITTER_CONSUMER_KEY }}
39+
consumer-secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
40+
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
41+
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
42+
```
43+
44+
## Implementation
45+
46+
This Action uses the `twitter` NPM package to send Tweets.
47+
48+
When making a code change remember to run `npm run pack` to rebuild the
49+
`dist/index.js` file which is the executable of this Action.

.github/actions/send-tweet/action.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Copyright 2020 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: 'Send Tweet Action'
16+
description: 'Send Tweets from GitHub Actions workflows.'
17+
inputs:
18+
repo:
19+
status: Status (Tweet) to be posted
20+
required: true
21+
consumer-key:
22+
description: Consumer API key.
23+
required: true
24+
consumer-secret:
25+
description: Consumer API secret key.
26+
required: true
27+
access-token:
28+
description: Application access token.
29+
required: true
30+
access-token-secret:
31+
description: Application access token secret.
32+
required: true
33+
runs:
34+
using: 'node12'
35+
main: 'dist/index.js'

0 commit comments

Comments
 (0)