Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Commit 35fbc47

Browse files
author
Victor Navarro
committed
feat: initial commit
0 parents  commit 35fbc47

File tree

17 files changed

+23693
-0
lines changed

17 files changed

+23693
-0
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [pocket-studios]

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["config:base"],
3+
"schedule": ["every month"]
4+
}

.github/workflows/node-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Node CI
2+
on:
3+
push
4+
5+
jobs:
6+
node-ci:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Install Dependencies
11+
run: yarn install
12+
- name: Run Action
13+
uses: ./
14+
with:
15+
firebase-token: 'banana'
16+
- name: Run Tests
17+
run: yarn test

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install Dependencies
12+
run: yarn install
13+
- name: Run Action
14+
uses: ./
15+
with:
16+
firebase-token: 'banana'
17+
- name: Run Tests
18+
run: yarn test
19+
- name: Update Version
20+
uses: pocket-studios/action-update-version@v1
21+
with:
22+
version-regexp: '\d'
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Dependency directory
2+
node_modules
3+
4+
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
jspm_packages/
46+
47+
# TypeScript v1 declaration files
48+
typings/
49+
50+
# TypeScript cache
51+
*.tsbuildinfo
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# dotenv environment variables file
69+
.env
70+
.env.test
71+
72+
# parcel-bundler cache (https://parceljs.org/)
73+
.cache
74+
75+
# next.js build output
76+
.next
77+
78+
# nuxt.js build output
79+
.nuxt
80+
81+
# vuepress build output
82+
.vuepress/dist
83+
84+
# Serverless directories
85+
.serverless/
86+
87+
# FuseBox cache
88+
.fusebox/
89+
90+
# DynamoDB Local files
91+
.dynamodb/
92+
93+
# OS metadata
94+
.DS_Store
95+
Thumbs.db
96+
97+
# Ignore built ts files
98+
tests/runner/*
99+
lib/**/*
100+
101+
# Editors
102+
.vscode
103+
.idea

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020 Pocket Studios, Inc. and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<div align="center">
2+
<h1>🔥 setup-firebase</h1>
3+
<p>Setup firebase-tools CLI</p>
4+
</div>
5+
6+
## 🧠 Why
7+
8+
There is an excellent function already: [firebase-action](https://github.com/w9jds/firebase-action), but it forces you to run a command in order to work.
9+
10+
With this one you just put the function at the start and use the firebase-tools CLI from any part of your code (npm script, shell...)
11+
12+
## 🚀 Usage
13+
14+
Simply add the action to get access to the firebase CLI.
15+
16+
```yaml
17+
jobs:
18+
setup-firebase:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/setup-node@v1
23+
- uses: pocket-studios/action-setup-firebase@v1
24+
with:
25+
firebase-token: YOUR_TOKEN
26+
```
27+
28+
## ⚙ Inputs
29+
30+
**Name**|**Description**|**Required**
31+
-----|-----|-----
32+
firebase-token|Firebase token you can get by running `firebase login:ci`|✔
33+
34+
## 👋 Support
35+
36+
If you find our work useful, you can [support our work](https://github.com/sponsors/pocket-studios) and win a burrito 🌯

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Setup Firebase CLI
2+
description: Setup firebase-tools CLI
3+
author: Pocket Studios
4+
branding:
5+
color: red
6+
icon: terminal
7+
runs:
8+
using: 'node12'
9+
main: 'dist/index.js'
10+
inputs:
11+
firebase-token:
12+
required: true
13+
description: Firebase token you can get by running `firebase login:ci`

0 commit comments

Comments
 (0)