Skip to content

chore(version): Upgrade reflect-metadata from 0.1.14 to 0.2.1 #55

chore(version): Upgrade reflect-metadata from 0.1.14 to 0.2.1

chore(version): Upgrade reflect-metadata from 0.1.14 to 0.2.1 #55

Workflow file for this run

on:
push:
paths: ['apps/web/**', '.github/workflows/web.yaml']
tags:
- '*'
pull_request:
types: [opened]
jobs:
validate:
runs-on: ubuntu-latest
name: Validate
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install packages
run: |
pnpm i
- name: Lint
run: |
pnpm run lint:web
- name: Test
run: |
pnpm run test:web
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: web
deploy-stage:
runs-on: ubuntu-latest
name: Deploy to stage
if: ${{ github.ref == 'refs/heads/develop' && (startsWith(github.event.head_commit, 'fix') || startsWith(github.event.head_commit, 'feat') || startsWith(github.event.head_commit, 'chore') || startsWith(github.event.head_commit, 'refactor') || startsWith(github.event.head_commit, 'style') || startsWith(github.event.head_commit, 'patch')) }}
needs: validate
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install fly CLI
run: |
curl -L https://fly.io/install.sh | sh
- name: Deploy to stage
run: ~/.fly/bin/fly deploy --config fly.web.toml --dockerfile ./apps/web/Dockerfile --app keyshade-web --access-token ${{ secrets.FLY_ACCESS_TOKEN }}
build-web-release:
needs: validate
runs-on: ubuntu-latest
name: Build and push Web docker image for release
if: ${{ startsWith(github.ref , 'refs/tags/') }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Docker image
run: docker build -t keyshade/keyshade-web:${{ github.ref_name }} keyshade/keyshade-web:latest -f ./apps/web/Dockerfile .
- name: Push Docker image
run: docker push keyshade/keyshade-web