Skip to content

pkg: @scores-lib ➤ 1.6.16; #168

pkg: @scores-lib ➤ 1.6.16;

pkg: @scores-lib ➤ 1.6.16; #168

Workflow file for this run

# ....................................
# ... GITHUB ACIONS CI/CD WORKFLOW ...
# ....................................
name: Main (PR) Build CI
'on':
pull_request:
types:
- opened
- synchronize
branches:
- main
- dev
push:
branches:
- dev
env:
DOCKER_IMAGE: 'scores_web'
PORT: ${{ secrets.PORT }}
VITE_FIREBASE_DB_PROJECT_ID: ${{ secrets.VITE_FIREBASE_DB_PROJECT_ID }}
VITE_REDIS_PORT: ${{ secrets.VITE_REDIS_PORT }}
VITE_REDIS_HOST: ${{ secrets.VITE_REDIS_HOST }}
VITE_FIREBASE_DB_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_DB_STORAGE_BUCKET }}
VITE_DISCORD_OAUTH_URL: ${{ secrets.VITE_DISCORD_OAUTH_URL }}
VITE_HASURA_DB_TOKEN: ${{ secrets.VITE_HASURA_DB_TOKEN }}
VITE_REDIS_BULL_DB: ${{ secrets.VITE_REDIS_BULL_DB }}
VITE_REDIS_CACHE_DB: ${{ secrets.VITE_REDIS_CACHE_DB }}
VITE_PROD_LOGS: ${{ secrets.VITE_PROD_LOGS }}
VITE_FIREBASE_DB_API_KEY: ${{ secrets.VITE_FIREBASE_DB_API_KEY }}
VITE_HASURA_DB_URL: ${{ secrets.VITE_HASURA_DB_URL }}
VITE_REDIS_PASS: ${{ secrets.VITE_REDIS_PASS }}
VITE_FIREBASE_DB_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_DB_AUTH_DOMAIN }}
VITE_FIREBASE_DB_DATABASE_URL: ${{ secrets.VITE_FIREBASE_DB_DATABASE_URL }}
SENTRY_ENVIRONMENT: ${{ secrets.SENTRY_ENVIRONMENT }}
jobs:
npm-build-check:
name: 🪀 NPM Build Check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: dev
- uses: actions/setup-node@v3
with:
node-version: 16.17.0
- name: '🏗️ Set npm version'
run: |
npm install -g npm@8.19.1
- name: '🟩 Build npm'
run: |
npm ci
npm install
npm run build
# docker-image-build:
# needs: npm-build-check
# name: 🐳 Docker Image Build
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - name: Build docker image
# run: |
# docker build . --file ./docker/prod.Dockerfile --tag ${{ env.DOCKER_IMAGE }}:$(date +%s)