Bump core-js from 3.37.0 to 3.37.1 #5089
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
"on": | |
push: | |
schedule: | |
- cron: "0 7 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
test: | |
name: Lint & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | |
- name: Install dependencies | |
run: npm ci && cd functions && npm ci && cd .. | |
- name: Lint | |
run: npm run lint | |
# - name: Test | |
# run: npm run test | |
buildFrontend: | |
name: Build Frontend | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | |
- name: Install dependencies | |
run: npm ci && cd functions && npm ci && cd .. | |
- name: Build Project for Production | |
run: npm run build | |
env: | |
BASE: "/" | |
BASE_URL: "https://adrianjost.dev" | |
deployFrontend: | |
name: Deploy Frontend | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | |
- name: Install dependencies | |
run: npm ci && cd functions && npm ci && cd .. | |
- name: Build Project for Production | |
run: npm run build | |
env: | |
BASE: "/" | |
BASE_URL: "https://adrianjost.dev" | |
- name: Deploy to Firebase | |
uses: FirebaseExtended/action-hosting-deploy@v0 | |
with: | |
repoToken: "${{ secrets.GITHUB_TOKEN }}" | |
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CURRICULUM_VITAE_5CD0A }}" | |
channelId: live | |
projectId: curriculum-vitae-5cd0a | |
deployBackend: | |
name: Deploy Backend | |
needs: test | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}" | |
- name: Install dependencies | |
run: npm ci && cd functions && npm ci && cd .. | |
- name: Deploy to Firebase | |
run: npx -p firebase-tools firebase deploy --only functions --token $FIREBASE_TOKEN | |
env: | |
FIREBASE_TOKEN: "${{ secrets.FIREBASE_TOKEN }}" |