Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Aug 7, 2020
1 parent de5a989 commit f9fdb6c
Show file tree
Hide file tree
Showing 6 changed files with 221 additions and 637 deletions.
9 changes: 9 additions & 0 deletions .github/actions/dist-download/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
runs:
using: "composite"
steps:

- name: Download dist
uses: actions/download-artifact@v2
with:
name: dist
path: ./packages/web/dist
9 changes: 9 additions & 0 deletions .github/actions/dist-upload/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
runs:
using: "composite"
steps:

- name: Upload dist
uses: actions/upload-artifact@v2
with:
name: dist
path: ./packages/web/dist
43 changes: 43 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
runs:
using: "composite"
steps:

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 12

- id: step_cache_deps
name: Cache dependencies
uses: actions/cache@master
with:
# Note this example uses the new multi-paths feature and is only available at master
# https://github.com/actions/cache/blob/f00dedfa6c708c51f4e4296f092458a4a891bddd/examples.md#node---lerna
path: |
node_modules
*/*/node_modules
~/.cache/firebase
key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }}

- name: Install Dependencies
# Reinstall node modules even if `cache-hit` is `true` because we need to build symlinks for Yarn workspace
run: |
yarn install --frozen-lockfile
echo "[DEBUG] CACHE_HIT: $CACHE_HIT"
if [ "$CACHE_HIT" != "true" ]
then
echo "[DEBUG] installing"
yarn run web firebase setup:emulators:firestore
fi
ls -lrth ~/.cache/firebase/emulators/
env:
CACHE_HIT: ${{ steps.step_cache_deps.outputs.cache-hit }}

- name: Configrate firebase
env:
FIREBASE_CLIENT_JSON: ${{ secrets.FIREBASE_CLIENT_JSON }}
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} # https://firebase.google.com/docs/cli#cli-ci-systems
run: |
echo "${FIREBASE_CLIENT_JSON}" > ./packages/web/config/firebase.client.json
export FIREBASE_PROJECT_ID=$(scripts/simple_jq.js ./packages/web/config/firebase.client.json .projectId)
yarn run web firebase use --add $FIREBASE_PROJECT_ID
228 changes: 0 additions & 228 deletions .github/temp/main.yml

This file was deleted.

Loading

0 comments on commit f9fdb6c

Please sign in to comment.